Skip to content

Commit 92b8e73

Browse files
committed
build: Add Scala 3 to CI matrix
1 parent 26bcb04 commit 92b8e73

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
scala: [2.12.12, 2.13.6]
24+
# If you update the Scala 3 version, make sure to update the conditionals further down!
25+
scala: [2.12.12, 2.13.6, 3.0.2]
2526
java: ['1.8', '1.11']
2627
runs-on: ubuntu-latest
2728
steps:
@@ -51,9 +52,20 @@ jobs:
5152
if [ -f ~/.sbt ]; then
5253
find ~/.sbt -name "*.lock" -delete
5354
fi
55+
56+
# coverage doesn't really work with Scala 3 yet so we only run it on Scala 2, which should be sufficient anyway
5457
- name: test
5558
run: ${{ format('./sbt ++{0} clean coverage test coverageReport', matrix.scala) }}
59+
if: matrix.scala != '3.0.2'
60+
- name: test
61+
run: ${{ format('./sbt "++{0} -v clean; ++{0} test"', matrix.scala) }}
62+
if: matrix.scala == '3.0.2'
63+
64+
# coverage doesn't really work with Scala 3 yet so we only run it on Scala 2, which should be sufficient anyway
5665
- name: coverage
5766
run: ${{ format('./sbt ++{0} coverageAggregate', matrix.scala) }}
67+
if: matrix.scala != '3.0.2'
68+
# coverage doesn't really work with Scala 3 yet so we only run it on Scala 2, which should be sufficient anyway
5869
- name: upload coverage
5970
uses: codecov/codecov-action@v2
71+
if: matrix.scala != '3.0.2'

0 commit comments

Comments
 (0)