File tree Expand file tree Collapse file tree 2 files changed +6
-24
lines changed
Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches : [ main, dev ]
55 pull_request :
6- branches : [ main, dev ]
6+ branches : [ main ]
77jobs :
88 test :
99 timeout-minutes : 60
1010 runs-on : ubuntu-latest
1111 steps :
12- # 1️⃣ Checkout the repo
1312 - uses : actions/checkout@v4
14-
15- # 2️⃣ Setup Node.js
1613 - uses : actions/setup-node@v4
1714 with :
1815 node-version : lts/*
19-
20- # 3️⃣ Install dependencies
2116 - name : Install dependencies
2217 run : npm ci
23-
24- # 4️⃣ Install Playwright browsers
2518 - name : Install Playwright Browsers
2619 run : npx playwright install --with-deps
27-
28- # 5️⃣ Run Playwright tests with Allure
29- - name : Run Playwright Tests
30- run : |
31- rimraf allure-results
32- npx playwright test --reporter=list,allure-playwright
33-
34- # 6️⃣ Generate Allure Report
35- - name : Generate Allure Report
36- run : npx allure generate allure-results --clean -o allure-report
37-
38- # 7️⃣ Upload Allure artifacts
39- - name : Upload Allure Artifacts
40- uses : actions/upload-artifact@v4
20+ - name : Run Playwright tests
21+ run : npx playwright test
22+ - uses : actions/upload-artifact@v4
4123 if : ${{ !cancelled() }}
4224 with :
43- name : allure -report
44- path : allure -report/
25+ name : playwright -report
26+ path : playwright -report/
4527 retention-days : 10
You can’t perform that action at this time.
0 commit comments