Skip to content

Test report merge export #36

Test report merge export

Test report merge export #36

Workflow file for this run

# @author : Julien Pechberty
#
# https://help.github.com/en/actions
name: JAVA TD 5 - Tests runners
on:
push:
branches:
- test-xi
jobs:
run-test:
name : Run Tests suite
runs-on: ubuntu-latest
strategy:
#fail-fast: true
matrix:
java-version: [22]
steps:
- name: Starting RUNNER
run: echo "Launching tests for JAVA ${{ matrix.java-version }}"
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# - name: Run tests with Maven
# if: success() || failure()
# run: mvn -B test --file pom.xml
- name: Verify tests with Maven
if: success() || failure()
run: mvn -B verify --file pom.xml
- name: Création de l'artefact des résultats des tests XML
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: ciMavenReportXML-${{ github.run_id }}
path: target/surefire-reports
- name: Création de l'artefact des résultats consolidés des tests en HTML
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: ciMavenReportHTML-${{ github.run_id }}
path: target/consolidated-reports
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Test Results # Name of the check run which will be created
#artifact: ciMavenReport-${{ github.run_id }} # Artifact name to download
path: ${{ github.workspace }}/target/surefire-reports/*.xml # Path to test results
reporter: java-junit # Format of test results
fail-on-error: 'false' # Fail the check run if an error occurs
#java-version: ${{ matrix.java-version }} # Java version