-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (42 loc) · 1.13 KB
/
ci-tests.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
name: ci-tests
on:
pull_request:
push:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
unit-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: "[email protected]"
- name: Build and Unit Tests
run: sbt -v -Dfile.encoding=UTF-8 +clean +test
coverage:
name: Code Coverage
strategy:
matrix:
scala: [2.12.15, 2.13.7]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: "[email protected]"
- name: Coverage for Scala 2 (until Scala 3 is available)
run: sbt ++${{ matrix.scala }} clean coverage test
- name: Coverage Report
run: sbt ++${{ matrix.scala }} coverageReport
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false # optional (default = false)
flags: unittests