Skip to content

Commit 57dc126

Browse files
committed
feat: github action run the e2e
1 parent ad9b78c commit 57dc126

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030
restore-keys: |
3131
playwright-${{ runner.os }}-
3232
33+
- name: 📦 Install E2E dependencies
34+
run: cd e2e && yarn add @playwright/test
35+
3336
- name: 🌐 Install Playwright browsers
34-
# run: cd e2e && yarn add @playwright/test && npx playwright install --with-deps && cd ..
35-
run: cd e2e && npx playwright install --with-deps && cd ..
37+
run: cd e2e && npx playwright install --with-deps
3638

3739
- name: 🔨 Build Next.js app
3840
env:
@@ -57,7 +59,7 @@ jobs:
5759
run: npx wait-on http://localhost:3333
5860

5961
- name: ✅ Run Playwright E2E tests
60-
run: cd e2e && npx playwright test && cd ..
62+
run: cd e2e && yarn test
6163

6264
- name: 📦 Upload Playwright report
6365
uses: actions/upload-artifact@v4

e2e/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"name": "e2e",
33
"version": "0.0.1",
44
"scripts": {
5-
"postinstall": "npx playwright install-deps && npx playwright install",
65
"test": "npx playwright test"
76
},
87
"keywords": [],
98
"author": "quochuydev",
10-
"license": "ISC",
9+
"license": "MIT",
1110
"devDependencies": {
1211
"@playwright/test": "1.53.0"
1312
}

0 commit comments

Comments
 (0)