chore: change working dir for exe #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scala tests | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "!**" | |
workflow_call: | |
jobs: | |
Tests: | |
name: Scala tests with Java ${{ matrix.JAVA_VERSION }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: scala | |
strategy: | |
matrix: | |
suite: [ seshat ] | |
JAVA_VERSION: [ 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/seshat/scoverage/htmlReport.dest/ |