Run unit tests #41
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: Run unit tests | |
on: | |
push: | |
branches: | |
- v2.0 | |
schedule: | |
- cron: '30 5 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
cache: maven | |
- name: Run the Maven verify phase | |
run: mvn --batch-mode -Dsnyk.skip verify | |
- name: Junit Test Report | |
uses: dorny/[email protected] | |
if: success() || failure() | |
with: | |
name: Junit Test Report | |
path: 'target/surefire-reports/*.xml' | |
reporter: java-junit | |
fail-on-error: true |