|
| 1 | +name: "Delta Connectors Tests" |
| 2 | +on: [push, pull_request] |
| 3 | +jobs: |
| 4 | + build: |
| 5 | + name: "Run tests" |
| 6 | + runs-on: ubuntu-20.04 |
| 7 | + strategy: |
| 8 | + matrix: |
| 9 | + # These Scala versions must match those in the build.sbt |
| 10 | + scala: [2.13.5, 2.12.15] |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v2 |
| 13 | + - name: install java |
| 14 | + uses: actions/setup-java@v2 |
| 15 | + with: |
| 16 | + distribution: 'zulu' |
| 17 | + java-version: '8' |
| 18 | + - name: Cache Scala, SBT |
| 19 | + uses: actions/cache@v2 |
| 20 | + with: |
| 21 | + path: | |
| 22 | + ~/.sbt |
| 23 | + ~/.ivy2 |
| 24 | + ~/.cache/coursier |
| 25 | + ~/.m2 |
| 26 | + key: build-cache-3-with-scala_${{ matrix.scala }} |
| 27 | + - name: Run Scala Style tests on test sources (Scala 2.12 only) |
| 28 | + run: build/sbt "++ ${{ matrix.scala }}" testScalastyle |
| 29 | + if: startsWith(matrix.scala, '2.12.') |
| 30 | + - name: Run sqlDeltaImport tests (Scala 2.12 and 2.13 only) |
| 31 | + run: build/sbt "++ ${{ matrix.scala }}" sqlDeltaImport/test |
| 32 | + if: ${{ !startsWith(matrix.scala, '2.11.') }} |
| 33 | + # These tests are not working yet |
| 34 | + # - name: Run Delta Standalone Compatibility tests (Scala 2.12 only) |
| 35 | + # run: build/sbt "++ ${{ matrix.scala }}" compatibility/test |
| 36 | + # if: startsWith(matrix.scala, '2.12.') |
| 37 | + - name: Run Delta Standalone tests |
| 38 | + run: build/sbt "++ ${{ matrix.scala }}" standalone/test testStandaloneCosmetic/test standaloneParquet/test testParquetUtilsWithStandaloneCosmetic/test |
| 39 | + - name: Run Hive 3 tests |
| 40 | + run: build/sbt "++ ${{ matrix.scala }}" hiveMR/test hiveTez/test |
| 41 | + - name: Run Hive 2 tests |
| 42 | + run: build/sbt "++ ${{ matrix.scala }}" hive2MR/test hive2Tez/test |
| 43 | + - name: Run Flink tests (Scala 2.12 only) |
| 44 | + run: build/sbt -mem 3000 "++ ${{ matrix.scala }}" flink/test |
| 45 | + if: ${{ startsWith(matrix.scala, '2.12.') }} |
0 commit comments