LauroSilveira has started workflow Build And Test #200
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: CI - Build And Test | |
run-name: ${{ github.actor }} has started workflow Build And Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build and test with Maven | |
run: mvn -B clean install --file pom.xml | |
generate-report: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Run mvn Clean Install phase | |
run: mvn -B clean install --file pom.xml | |
- name: Test Report | |
uses: dorny/[email protected] | |
if: success() || failure() | |
with: | |
name: Test Report Generated | |
reporter: java-junit | |
path: target/surefire-reports/*.xml |