pipeline-manual-run to run test cases manually #3
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: pipeline-manual-run to run test cases manually | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| run-test-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out the repo | |
| uses: actions/checkout@v4 | |
| - name: listing the files before running | |
| run: find . | |
| - name: Build the project (compile and install) | |
| run: mvn clean install -DskipTests | |
| - name: Running the test cases | |
| run: mvn clean test -Dsuite=vendor-portal.xml | |
| - name: listing the files after test run | |
| run: find . | |
| - name: Publishing the Test artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-reports-upload-extentReport | |
| path: target/test-output/extent-Report | |
| retention-days: 100 # for 100 days the report will persist after that it will be deleted |