Skip to content

ci

ci #2813

Workflow file for this run

name: ci
on:
push:
pull_request:
schedule:
- cron: '0 20 * * *'
jobs:
test:
timeout-minutes: 120
strategy:
matrix:
include:
- name: "test-cross"
java: 8
os: ubuntu-latest
- name: "scripted"
java: 8
os: ubuntu-latest
- name: "scripted"
java: 8
os: windows-latest
- name: "test"
java: 21
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-java@v4
with:
java-version: ${{matrix.java}}
distribution: temurin
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- shell: bash
run: |
case ${{ matrix.name }} in
"test-cross")
sbt -v scalafmtSbtCheck "+ scalafmtCheckAll" "+compile" "+test"
;;
"scripted")
sbt -v "+ publishLocal" "+ sbt-plugin/scripted"
;;
"test")
sbt -v test '++ 3.3.3!' coreBinary/test
;;
*)
echo "unknown job"
exit 1
esac
- shell: bash
run: rm -rf "$HOME/.ivy2/local" || true