Merge pull request #107 from noleme/dependabot/maven/org.junit.jupite… #163
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: Maven Build | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macOS-latest ] | |
java: [ 11, 17, 21 ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 120 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Upload surefire artifact | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ${{ matrix.os }}-surefire | |
path: target/surefire-reports/* |