#291 Clean up fat JARs and add the main method to the manifest. #453
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: ScalaCI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "pramen/**" | |
- ".github/workflows/scala.yml" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "pramen/**" | |
- ".github/workflows/scala.yml" | |
jobs: | |
build-sbt: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: [2.11.12, 2.12.18, 2.13.12] | |
spark: [2.4.8, 3.2.4, 3.3.3, 3.4.1] | |
exclude: | |
- scala: 2.11.12 | |
spark: 3.2.4 | |
- scala: 2.11.12 | |
spark: 3.3.3 | |
- scala: 2.11.12 | |
spark: 3.4.1 | |
- scala: 2.13.12 | |
spark: 2.4.8 | |
name: Test Spark ${{matrix.spark}} on Scala ${{matrix.scala}} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: coursier/cache-action@v5 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "[email protected]" | |
- name: Build and run unit tests | |
working-directory: ./pramen | |
run: sbt ++${{matrix.scala}} test -DSPARK_VERSION=${{matrix.spark}} | |
- name: Run integration tests | |
working-directory: ./pramen | |
run: sbt ++${{matrix.scala}} integration:test -DSPARK_VERSION=${{matrix.spark}} |