Skip to content

Commit faac388

Browse files
committed
Update GitHub Actions to run Playwright tests
Replace the old test job with Playwright-based in-browser tests. - Install Playwright browsers (chromium) - Run tests from epicshop directory - Upload test report as artifact
1 parent 587dce0 commit faac388

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/validate.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ jobs:
4040
working-directory: ./workshop
4141

4242
tests:
43-
name: 🧪 Test
44-
timeout-minutes: 10
43+
name: 🎭 Test
44+
timeout-minutes: 15
4545
runs-on: ubuntu-latest
46-
# Use continue-on-error to ensure this job doesn't fail the workflow
47-
continue-on-error: true
4846

4947
steps:
5048
- name: ⬇️ Checkout repo
@@ -58,9 +56,21 @@ jobs:
5856
- name: 📦 Install dependencies
5957
run: npm ci
6058

61-
- name: 🧪 Run tests
62-
id: run_tests
63-
run: node ./epicshop/test.js ..s
59+
- name: 🎭 Install Playwright Browsers
60+
run: npx playwright install --with-deps chromium
61+
working-directory: ./epicshop
62+
63+
- name: 🎭 Run Playwright tests
64+
run: npx playwright test
65+
working-directory: ./epicshop
66+
67+
- name: 📤 Upload Playwright Report
68+
uses: actions/upload-artifact@v4
69+
if: ${{ !cancelled() }}
70+
with:
71+
name: playwright-report
72+
path: epicshop/playwright-report/
73+
retention-days: 30
6474

6575
deploy:
6676
name: 🚀 Deploy

0 commit comments

Comments
 (0)