Update sbt to 1.9.9 #304
Workflow file for this run
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: CI | |
on: ["push", "pull_request"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [17] | |
scala: ['2.13', '3.2'] | |
include: | |
- scala: '2.13' | |
scala-version: 2.13.9 | |
- scala: '3.2' | |
scala-version: 3.2.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.jdk }} | |
- name: Check and compile | |
run: sbt ++${{ matrix.scala-version }} scalafmtCheckAll compile | |
- name: Test | |
run: > | |
if [[ "${{ matrix.scala }}" =~ ^2\..* ]]; then | |
sbt ++${{ matrix.scala-version }} coverage genCode test; | |
else | |
sbt ++${{ matrix.scala-version }} genCode test; | |
fi | |
- name: Coveralls | |
if: startsWith(matrix.scala, '2') | |
run: sbt ++${{ matrix.scala-version }} coverageAggregate coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} |