Skip to content

fix(ci): improve test report handling and fix Failsafe HTML generation #5

fix(ci): improve test report handling and fix Failsafe HTML generation

fix(ci): improve test report handling and fix Failsafe HTML generation #5

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
- feature/**
pull_request:
branches:
- main
- feature/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build and Run Tests
run: mvn clean verify
- name: Generate Surefire and Failsafe HTML Reports
run: mvn surefire-report:report failsafe-report:report
- name: Upload XML Test Reports (Surefire + Failsafe)
if: always()
uses: actions/upload-artifact@v4
with:
name: surefire-failsafe-xml-reports
path: |
target/surefire-reports/
target/failsafe-reports/
retention-days: 90
- name: Upload HTML Test Reports (Surefire + Failsafe)
if: always()
uses: actions/upload-artifact@v4
with:
name: surefire-failsafe-html-reports
path: target/site/
retention-days: 90