-
Notifications
You must be signed in to change notification settings - Fork 87
67 lines (66 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
java: [8, 11, 17]
scala: [2.11.x, 2.12.x, 2.13.x, 3.x]
platform: [JVM, JS, Native]
mode: [normal]
exclude:
- java: 11
platform: JS
- java: 11
platform: Native
- java: 17
platform: JS
- java: 17
platform: Native
include:
- java: 8
scala: 2.12.x
mode: testScalafix
platform: JVM
- java: 8
scala: 2.12.x
mode: testBinaryCompat
platform: JVM
- java: 8
scala: 2.12.x
mode: testScalafmt
platform: JVM
- java: 8
scala: 2.12.x
mode: headerCheck
platform: JVM
- java: 11
scala: 2.12.x
mode: normal
platform: JVM
- java: 17
scala: 2.12.x
mode: normal
platform: JVM
runs-on: ubuntu-latest
env:
CI_JDK: ${{matrix.java}}
CI_SCALA_VERSION: ${{matrix.scala}}
CI_MODE: ${{matrix.mode}}
CI_PLATFORM: ${{matrix.platform}}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{matrix.java}}
- name: ci
run: sbt ci