Skip to content

sbt 2.x build setting, take 2 #185

sbt 2.x build setting, take 2

sbt 2.x build setting, take 2 #185

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
java: 8
distribution: zulu
jobtype: 1
- os: macos-latest
java: 8
distribution: zulu
jobtype: 2
- os: ubuntu-latest
java: 8
distribution: zulu
jobtype: 3
runs-on: ${{ matrix.os }}
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