-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (28 loc) · 833 Bytes
/
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
name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Make sure to update build.sbt when updating this list
scala: [ 3.3.3, 2.13.14, 2.12.19 ]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: Run tests
run: sbt "++${{ matrix.scala }} test"
- name: Run coverage (JVM only)
run: sbt coverage "++${{ matrix.scala }}; root/test"
- name: Upload coverage data to Coveralls
run: sbt ++${{ matrix.scala }} coverageAggregate coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}