Skip to content

Commit ed15de9

Browse files
committed
Updated image, fix playwright.yml
1 parent 2c96a97 commit ed15de9

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,25 @@ on:
33
push:
44
branches: [ main, dev ]
55
pull_request:
6-
branches: [ main, dev ]
6+
branches: [ main ]
77
jobs:
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

images/docker-success-build.png

114 KB
Loading

0 commit comments

Comments
 (0)