forked from scalate/scalate
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 839 Bytes
/
scala.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
name: build
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
java: [8, 21]
scala: ['2_12', '2_13', '3']
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: adopt
- name: Run tests
run: |
case ${{ matrix.scala }} in
"2_12")
sbt -v SetScala212 test unidoc
;;
"2_13")
sbt -v SetScala213 test unidoc
;;
"3")
sbt -v SetScala3 test unidoc
;;
*)
echo "unknown scala version"
exit 1
esac
git diff --exit-code