Update sbt to 2.0.5 #66
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| scala-versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.read.outputs.versions }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Read Scala versions | |
| id: read | |
| # Single source of truth shared with build.sbt — see project/scala*-versions.txt. | |
| run: | | |
| versions=$(grep -hvE '^[[:space:]]*(#|$)' project/scala2-versions.txt project/scala3-versions.txt | jq -R . | jq -sc .) | |
| echo "versions=$versions" >> "$GITHUB_OUTPUT" | |
| test: | |
| needs: scala-versions | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| scala: ${{ fromJson(needs.scala-versions.outputs.versions) }} | |
| name: Test on Scala ${{ matrix.scala }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: coursier/cache-action@v8 | |
| - uses: coursier/setup-action@v3.0.0 | |
| with: | |
| jvm: "temurin:1.17.0.15" | |
| apps: sbt | |
| - name: Run tests | |
| # sbt 2.0 makes the bare `test` task incremental/cached; `testFull` forces a real run. | |
| run: sbt "++${{ matrix.scala }}; tests/testFull" |