-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (50 loc) · 1.17 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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