Merge pull request #314 from eed3si9n/wip/cross #194
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- java: 8 | |
distribution: zulu | |
jobtype: 1 | |
- java: 8 | |
distribution: zulu | |
jobtype: 2 | |
- java: 8 | |
distribution: zulu | |
jobtype: 3 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "${{ matrix.distribution }}" | |
java-version: "${{ matrix.java }}" | |
cache: sbt | |
- uses: sbt/setup-sbt@v1 | |
- name: Build and test (sbt 1.x) | |
if: ${{ matrix.jobtype == 1 }} | |
shell: bash | |
run: | | |
sbt --client +test | |
sbt --client "++2.12.x; scripted" | |
- name: Build and test (sbt 2.x) | |
if: ${{ matrix.jobtype == 2 }} | |
shell: bash | |
run: | | |
sbt --client "++3.x; scripted" | |
- name: Mima | |
if: ${{ matrix.jobtype == 3 }} | |
shell: bash | |
run: | | |
sbt --client mimaReportBinaryIssues |