Fix CI #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- scalaVersion: 2.11 | |
sparkVersion: 2.3.2 | |
scalaCompt: 2.11.12 | |
- scalaVersion: 2.11 | |
sparkVersion: 2.4.8 | |
scalaCompt: 2.11.12 | |
- scalaVersion: 2.12 | |
sparkVersion: 2.4.8 | |
scalaCompt: 2.12.15 | |
- scalaVersion: 2.12 | |
sparkVersion: 3.0.3 | |
scalaCompt: 2.12.15 | |
- scalaVersion: 2.12 | |
sparkVersion: 3.1.2 | |
scalaCompt: 2.12.15 | |
- scalaVersion: 2.12 | |
sparkVersion: 3.2.0 | |
scalaCompt: 2.12.15 | |
- scalaVersion: 2.13 | |
sparkVersion: 3.2.0 | |
scalaCompt: 2.13.7 | |
- scalaVersion: 2.12 | |
sparkVersion: 3.3.0 | |
scalaCompt: 2.12.15 | |
- scalaVersion: 2.13 | |
sparkVersion: 3.3.0 | |
scalaCompt: 2.13.7 | |
- scalaVersion: 2.13 | |
sparkVersion: 3.4.0 | |
scalaCompt: 2.13.10 | |
- scalaVersion: 2.13 | |
sparkVersion: 3.5.0 | |
scalaCompt: 2.13.12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Setup Gradle Dependencies Cache | |
uses: actions/[email protected] | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-caches--PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }} -${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }} | |
- name: Setup Gradle Wrapper Cache | |
uses: actions/[email protected] | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Style Check | |
run: ./gradlew :spark:scalastyleMainCheck -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }} | |
- name: Test | |
run: ./gradlew test -x :flink:test -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }} | |
# run: ./gradlew test aggregateScoverage -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }} | |
# - uses: codecov/codecov-action@v2 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
# directory: ./build/reports/scoverage/ | |
# verbose: true |