-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.18 KB
/
unit-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
name: Unit Tests
on: [ push, pull_request ]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
suite: [ neodisambiguate ]
java-version: [ 1.8, 11, 17, 21 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Cache for Scala Dependencies
uses: actions/cache@v2
with:
path: |
~/.mill/download
~/.m2/repository
~/.cache/coursier
key: ${{ runner.os }}-java-mill-${{ matrix.java-version }}-${{ hashFiles('**/build.sc') }}
restore-keys: ${{ runner.os }}-java-mill-
- name: Compile Scala Code
run: |
./mill --no-server clean
./mill --no-server --disable-ticker ${{ matrix.suite }}.compile
- name: Test Scala Code
run: |
./mill --no-server --disable-ticker ${{ matrix.suite }}.test
- name: Create Code Coverage Report
if: matrix.java-version == '11'
run: |
./mill --no-server --disable-ticker ${{ matrix.suite }}.scoverage.htmllsReport
# TODO: build an HTML report and upload as an artifact