Merge pull request #387 from scala-steward/update/sbt-1.11.2 #212
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: | |
- 2.12.18 | |
- 2.12.19 | |
- 2.12.20 | |
- 2.13.11 | |
- 2.13.12 | |
- 2.13.13 | |
- 2.13.14 | |
- 2.13.15 | |
- 2.13.16 | |
java: [8, 11, 17, 21] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK ${{matrix.java}} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{matrix.java}} | |
- name: Set up sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Cache Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Test on JDK ${{matrix.java}}, Scala ${{matrix.scala}} | |
run: sbt ++${{matrix.scala}} test |