Skip to content

feat: honor original algorithm, increase test coverage (#7) #68

feat: honor original algorithm, increase test coverage (#7)

feat: honor original algorithm, increase test coverage (#7) #68

Workflow file for this run

name: Unit Tests
on: [ push, pull_request ]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
suite: [ neodisambiguate ]
java-version: [ 8, 11, 17, 21 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Cache for Scala Dependencies
uses: actions/cache@v4
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.htmlReport
- name: Upload Code Coverage Report
uses: actions/upload-artifact@v4
if: matrix.java-version == '11'
with:
name: code-coverage
path: out/neodisambiguate/scoverage/htmlReport.dest/