-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 962 Bytes
/
ci.yaml
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
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
name: [ "test" ]
scala: [ 3.3.0, 3.3.1 ]
java: [ 20, 21 ]
include:
- name: "format"
scala: 3.3.1
java: 21
exclude:
- name: "test"
scala: 3.3.0
java: 21
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- shell: bash
run: |
case ${{ matrix.name }} in
"format")
sbt -v ++${{ matrix.scala }} scalafmtSbt scalafmtAll
git diff --exit-code
;;
"test")
sbt -v ++${{ matrix.scala }} test
;;
*)
echo "unknown job"
exit 1
esac