Skip to content

Commit b4b55c9

Browse files
authored
Merge pull request #129 from danicheg/ci
Use Scala versions matrix for running tests in CI
2 parents 3bdfb1e + 961f09b commit b4b55c9

File tree

1 file changed

+49
-4
lines changed

1 file changed

+49
-4
lines changed

.github/workflows/ci.yml

+49-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ on:
88

99
jobs:
1010
scalafmt:
11-
name: Formatting
11+
name: Check formatting
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
- name: Setup Java (temurin@8)
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: temurin
19+
java-version: 8
20+
cache: sbt
1521
- uses: coursier/cache-action@v6
1622
- name: Check formatting
1723
run: sbt -v "scalafmtSbtCheck" "scalafmtCheckAll"
@@ -20,27 +26,66 @@ jobs:
2026
runs-on: ubuntu-latest
2127
steps:
2228
- uses: actions/checkout@v4
29+
- name: Setup Java (temurin@8)
30+
uses: actions/setup-java@v4
31+
with:
32+
distribution: temurin
33+
java-version: 8
34+
cache: sbt
2335
- uses: coursier/cache-action@v6
2436
- run: sbt docs/run
2537
plugin-tests:
2638
name: Compiler and SBT plugin tests
27-
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
os: [ ubuntu-latest ]
42+
scala:
43+
- 2.12.13
44+
- 2.12.14
45+
- 2.12.15
46+
- 2.12.16
47+
- 2.12.17
48+
- 2.12.18
49+
- 2.12.19
50+
- 2.13.5
51+
- 2.13.6
52+
- 2.13.7
53+
- 2.13.8
54+
- 2.13.9
55+
- 2.13.10
56+
- 2.13.11
57+
- 2.13.12
58+
- 2.13.13
59+
- 2.13.14
60+
runs-on: ${{ matrix.os }}
2861
steps:
2962
- uses: actions/checkout@v4
3063
with:
3164
submodules: true
65+
- name: Setup Java (temurin@8)
66+
uses: actions/setup-java@v4
67+
with:
68+
distribution: temurin
69+
java-version: 8
70+
cache: sbt
3271
- uses: coursier/cache-action@v6
3372
- name: Compiler plugin tests
34-
run: sbt -v "+plugin/test"
73+
run: sbt -v '++ ${{ matrix.scala }}' plugin/test
3574
- name: SBT plugin tests
36-
run: sbt -v "profilingSbtPlugin/scripted"
75+
run: sbt -v '++ ${{ matrix.scala }}' profilingSbtPlugin/scripted
3776
intergration-tests:
3877
name: Integration tests
3978
runs-on: ubuntu-latest
4079
steps:
4180
- uses: actions/checkout@v4
4281
with:
4382
submodules: true
83+
- name: Setup Java (temurin@8)
84+
uses: actions/setup-java@v4
85+
with:
86+
distribution: temurin
87+
java-version: 8
88+
cache: sbt
4489
- uses: coursier/cache-action@v6
4590
- name: Running tests
4691
run: sbt -v "showScalaInstances" "integrations/testOnly integration better-files wartremover"

0 commit comments

Comments
 (0)