Merge pull request #29 from olech2412/olech2412-patch-3 #49
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: Test CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
testAPI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Run Tests with Maven | |
run: mvn test --file pom.xml | |
- name: Generate Test Report | |
run: mvn surefire-report:report | |
- name: Upload Test Report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Test Report | |
path: target/site/surefire-report.html |