Commit 1e2a50c 1 parent b8bbf1d commit 1e2a50c Copy full SHA for 1e2a50c
File tree 2 files changed +19
-6
lines changed
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
10
10
jobs :
11
11
e2e :
12
12
name : Run E2E test
13
- runs-on : ubuntu-latest
13
+ runs-on : namespace-profile-playwright
14
14
env :
15
15
# renovate: datasource=node-version depName=node
16
16
NODE_VERSION : 20
@@ -19,14 +19,24 @@ jobs:
19
19
run :
20
20
working-directory : e2e-test
21
21
steps :
22
- - name : Setup repo
23
- uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
22
+ - name : Checkout
23
+ uses : namespacelabs/nscloud-checkout-action@v5
24
+
25
+ - name : Setup cache
26
+ uses : namespacelabs/nscloud-cache-action@v1
27
+ with :
28
+ path : |
29
+ ~/.npm
30
+ ~/.cache/ms-playwright
31
+ ./node_modules
32
+ /var/cache/apt
33
+
34
+ - name : Stop apt cleaning cache
35
+ run : sudo rm /etc/apt/apt.conf.d/docker-clean
24
36
25
37
- uses : actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
26
38
with :
27
39
node-version : ' ${{env.NODE_VERSION}}'
28
- cache : ' npm'
29
- cache-dependency-path : e2e-test/package-lock.json
30
40
31
41
- name : Install playwright deps
32
42
run : |
35
45
36
46
- name : Run e2e tests
37
47
id : run-e2e-tests
48
+ env :
49
+ PW_WORKERS : ' 100%'
38
50
run : ../bin/e2e
39
51
40
52
- name : Output docker compose logs
@@ -103,7 +115,7 @@ jobs:
103
115
104
116
- name : Store HTML report as GitHub Artifact
105
117
if : ${{ !cancelled() }}
106
- uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
118
+ uses : namespace- actions/upload-artifact@v0
107
119
with :
108
120
name : playwright-html-report
109
121
path : e2e-test/playwright-report
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export default defineConfig({
8
8
video : 'retain-on-failure' ,
9
9
browserName : 'chromium' ,
10
10
} ,
11
+ workers : process . env . PW_WORKERS ?? undefined ,
11
12
testDir : './tests' ,
12
13
fullyParallel : true ,
13
14
forbidOnly : ! ! process . env . CI ,
You can’t perform that action at this time.
0 commit comments