Skip to content

Commit 6e62bcb

Browse files
committed
aggregate parameter in CI strategy
1 parent 42b43d0 commit 6e62bcb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
needs: vars
1919
runs-on: ubuntu-latest
2020

21-
strategy:
21+
strategy: &scala_strategy
2222
max-parallel: 2
2323
fail-fast: false
2424
matrix:
@@ -50,11 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151

5252
#TODO: don't repeat yourself
53-
strategy:
54-
max-parallel: 2
55-
fail-fast: false
56-
matrix:
57-
scalaVersion: ["2.13.9", "2.13.10", "2.13.11", "2.13.12", "2.13.13", "2.13.14", "2.13.15", "2.13.16", "2.13.17", "2.13.18"]
53+
strategy: *scala_strategy
5854

5955
continue-on-error: ${{ contains(needs.vars.outputs.experimentalScalaVersions, matrix.scalaVersion) }}
6056

0 commit comments

Comments
 (0)