Update the CI #44
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: main | |
on: push | |
jobs: | |
test: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Fetch sources | |
uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Set up Ant | |
uses: cedx/setup-ant@v1 | |
with: | |
optional-tasks: true | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: lib | |
key: java-${{runner.os}}-ivy-${{hashFiles('ivy.xml')}} | |
restore-keys: java-${{runner.os}}-ivy- | |
- name: Install dependencies | |
run: ant install | |
- name: Run tests | |
run: ant -emacs test | |
- name: Collect code coverage | |
if: success() | |
uses: codecov/codecov-action@v3 | |
with: | |
files: var/coverage.xml |