Update README link for github action of base build. #36
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: JUnit Tests | |
on: | |
workflow_dispatch: | |
branches: [ main, master ] | |
push: | |
branches: | |
- '*' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
cache: 'maven' | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: "~/.m2/repository" | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run Maven Action | |
run: mvn -B test --file pom.xml |