Skip to content

add sbt 2.x cross build setting #380

add sbt 2.x cross build setting

add sbt 2.x cross build setting #380

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- '*.md'
branches:
- main
- V2
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ '8', '17' ]
os: [ 'ubuntu-latest' ]
steps:
- name: checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: sbt/setup-sbt@v1
- name: Set up JVM
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Run tests
run: sbt scripted "++ 3.x" test
formatting:
runs-on: ubuntu-latest
steps:
- name: checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JVM
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- uses: sbt/setup-sbt@v1
- name: Check Formatting
run: sbt scalafmtSbtCheck "+ scalafmtCheckAll"