Release 2.018 #77
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: Automated tests | |
on: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore cached dependencies | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.deps.clj | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
- name: Mise-en-place setup | |
uses: jdx/mise-action@v2 | |
with: | |
install: true | |
cache: true | |
- name: Setup Clojure | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1413 | |
- name: Run clojure linter | |
run: | | |
mise use java@corretto-8 | |
scripts/lint | |
- name: Run automated tests - Java 8 | |
run: | | |
mise use java@corretto-8 | |
java -version | |
scripts/run-tests | |
- name: Run automated tests - Java 11 | |
run: | | |
mise use java@corretto-11 | |
java -version | |
scripts/run-tests | |
- name: Run automated tests - Java 17 | |
run: | | |
mise use java@corretto-17 | |
java -version | |
scripts/run-tests | |
- name: Run automated tests - Java 19 | |
run: | | |
mise use java@corretto-19 | |
java -version | |
scripts/run-tests | |
- name: Run automated tests - Java 21 | |
run: | | |
mise use java@corretto-21 | |
java -version | |
scripts/run-tests | |
- name: Run automated tests - Java 22 | |
run: | | |
mise use java@corretto-22 | |
java -version | |
scripts/run-tests | |
- name: Setup LCOV | |
uses: hrishikesh-kadam/setup-lcov@v1 | |
- name: Report code coverage | |
uses: zgosalvez/github-actions-report-lcov@v3 | |
with: | |
coverage-files: target/coverage/lcov.info | |
minimum-coverage: 0 | |
artifact-name: code-coverage-report | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
update-comment: false | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.deps.clj | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
restore-keys: cljdeps- |