Skip to content

Commit 8f4484b

Browse files
committed
feat: github action run the e2e
1 parent 86c4245 commit 8f4484b

3 files changed

Lines changed: 26 additions & 18 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
- name: 📦 Install dependencies (Yarn)
2323
run: yarn install
2424

25+
- name: 💾 Cache Playwright browsers
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.cache/ms-playwright
29+
key: playwright-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
30+
restore-keys: |
31+
playwright-${{ runner.os }}-
32+
33+
- name: 🌐 Install Playwright browsers
34+
run: cd e2e && yarn add @playwright/test && npx playwright install --with-deps && cd ..
35+
2536
- name: 🔨 Build Next.js app
2637
env:
2738
ZITADEL_URL: ${{ secrets.ZITADEL_URL }}
@@ -53,8 +64,5 @@ jobs:
5364
- name: ⏳ Wait for app to be ready
5465
run: npx wait-on http://localhost:3333
5566

56-
- name: 🌐 Install Playwright browsers
57-
run: cd e2e && npx playwright install --with-deps && yarn add @playwright/test && cd ..
58-
5967
- name: ✅ Run Playwright E2E tests
6068
run: cd e2e && yarn test && cd ..

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "quochuydev",
1010
"license": "ISC",
1111
"devDependencies": {
12-
"@playwright/test": "^1.38.0"
12+
"@playwright/test": "1.53.0"
1313
}
1414
}

e2e/yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
# yarn lockfile v1
33

44

5-
"@playwright/test@^1.38.0":
6-
version "1.44.0"
7-
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.44.0.tgz#ac7a764b5ee6a80558bdc0fcbc525fcb81f83465"
8-
integrity sha512-rNX5lbNidamSUorBhB4XZ9SQTjAqfe5M+p37Z8ic0jPFBMo5iCtQz1kRWkEMg+rYOKSlVycpQmpqjSFq7LXOfg==
5+
"@playwright/test@1.53.0":
6+
version "1.53.0"
7+
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.53.0.tgz#23e0abac142f05b6b315c2da19129178aebb94e4"
8+
integrity sha512-15hjKreZDcp7t6TL/7jkAo6Df5STZN09jGiv5dbP9A6vMVncXRqE7/B2SncsyOwrkZRBH2i6/TPOL8BVmm3c7w==
99
dependencies:
10-
playwright "1.44.0"
10+
playwright "1.53.0"
1111

1212
fsevents@2.3.2:
1313
version "2.3.2"
1414
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
1515
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
1616

17-
playwright-core@1.44.0:
18-
version "1.44.0"
19-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.44.0.tgz#316c4f0bca0551ffb88b6eb1c97bc0d2d861b0d5"
20-
integrity sha512-ZTbkNpFfYcGWohvTTl+xewITm7EOuqIqex0c7dNZ+aXsbrLj0qI8XlGKfPpipjm0Wny/4Lt4CJsWJk1stVS5qQ==
17+
playwright-core@1.53.0:
18+
version "1.53.0"
19+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.53.0.tgz#bf2738cc143116b6130b78e0c644edf2e7e53ff4"
20+
integrity sha512-mGLg8m0pm4+mmtB7M89Xw/GSqoNC+twivl8ITteqvAndachozYe2ZA7srU6uleV1vEdAHYqjq+SV8SNxRRFYBw==
2121

22-
playwright@1.44.0:
23-
version "1.44.0"
24-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.44.0.tgz#22894e9b69087f6beb639249323d80fe2b5087ff"
25-
integrity sha512-F9b3GUCLQ3Nffrfb6dunPOkE5Mh68tR7zN32L4jCk4FjQamgesGay7/dAAe1WaMEGV04DkdJfcJzjoCKygUaRQ==
22+
playwright@1.53.0:
23+
version "1.53.0"
24+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.53.0.tgz#4eae78aa24e3c714bf71981f80b3310b838692fd"
25+
integrity sha512-ghGNnIEYZC4E+YtclRn4/p6oYbdPiASELBIYkBXfaTVKreQUYbMUYQDwS12a8F0/HtIjr/CkGjtwABeFPGcS4Q==
2626
dependencies:
27-
playwright-core "1.44.0"
27+
playwright-core "1.53.0"
2828
optionalDependencies:
2929
fsevents "2.3.2"

0 commit comments

Comments
 (0)