fix: remove unnecessary versions for maven surefire and failsafe plug… #217
This file contains hidden or 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 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 Test Reports (Surefire & Failsafe) | |
| run: mvn surefire-report:report-only | |
| - name: Upload HTML Test Reports (Surefire + Failsafe) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: surefire-failsafe-html-report | |
| path: target/reports/surefire.html | |
| retention-days: 20 |