Merge pull request #438 from scala-steward/update/sbt-1.10.11 #616
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,pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scala: ["2.12.20", "2.13.15", "3.3.5"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: coursier/cache-action@v6 | |
| - uses: olafurpg/setup-scala@v11 | |
| with: | |
| java-version: zulu@1.11 | |
| - run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck test doc | |
| if: startsWith(matrix.scala, '3') | |
| - run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck coverage test doc coverageReport coveralls | |
| if: startsWith(matrix.scala, '2') | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| results: | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| name: Final Results | |
| needs: [build] | |
| steps: | |
| - run: exit 1 | |
| if: >- | |
| ${{ | |
| contains(needs.*.result, 'failure') | |
| || contains(needs.*.result, 'cancelled') | |
| }} |