-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpipeline-scheduled-regression.yaml
More file actions
52 lines (43 loc) · 1.83 KB
/
Copy pathpipeline-scheduled-regression.yaml
File metadata and controls
52 lines (43 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: pipeline-scheduled-run (daily 4:05 PM UTC)
on:
schedule:
- cron: "5 16 * * *" # runs every day at 17:05 UTC (4:05 PM UTC)
jobs:
run-test-job:
runs-on: ubuntu-latest
steps:
- name: Checking out the repo
uses: actions/checkout@v4
- name: Cache Maven dependencies # adding this to speed up the execution, any changes in pom.xml file will result in cache miss
id: maven-cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- 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
continue-on-error: true
run: mvn clean test -Dsuite=vendor-portal.xml
- name: Printing the Test execution status
if: always() # adding always() since this step will run always even if test cases run fail
continue-on-error: true
run: cat target/test-output/testng-report/TestSuite.txt
- 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: 30 # for 30 days the report will persist after that it will be deleted, default is 90 days
download-test-report-job: # this will download the artifact
needs: run-test-job
runs-on: ubuntu-latest
steps:
- name: Download Test Reports
uses: actions/download-artifact@v4
with:
name: test-reports-upload-extentReport
path: test-execution-reports/