Skip to content

Commit d5d8e30

Browse files
committed
Try out namespace.so GitHub actions runners
1 parent b8bbf1d commit d5d8e30

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

.github/workflows/e2e.yml

+31-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
e2e:
1212
name: Run E2E test
13-
runs-on: ubuntu-latest
13+
runs-on: namespace-profile-playwright
1414
env:
1515
# renovate: datasource=node-version depName=node
1616
NODE_VERSION: 20
@@ -19,22 +19,47 @@ jobs:
1919
run:
2020
working-directory: e2e-test
2121
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+
33+
- name: Stop apt cleaning cache
34+
run: rm /etc/apt/apt.conf.d/docker-clean
2435

2536
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
2637
with:
2738
node-version: '${{env.NODE_VERSION}}'
28-
cache: 'npm'
29-
cache-dependency-path: e2e-test/package-lock.json
3039

3140
- name: Install playwright deps
3241
run: |
3342
npm ci
3443
npx playwright install --with-deps
3544
45+
- name: list apt cache
46+
run: |
47+
ls -lah /etc/apt/apt.conf.d/
48+
echo '-----'
49+
ls -lah /var/cache/apt
50+
echo '-----'
51+
tree /var/cache/apt || echo 'treeless'
52+
53+
- name: Breakpoint if tests failed
54+
uses: namespacelabs/breakpoint-action@v0
55+
with:
56+
duration: 10m
57+
authorized-users: annervisser
58+
3659
- name: Run e2e tests
3760
id: run-e2e-tests
61+
env:
62+
PW_WORKERS: '100%'
3863
run: ../bin/e2e
3964

4065
- name: Output docker compose logs
@@ -103,7 +128,7 @@ jobs:
103128

104129
- name: Store HTML report as GitHub Artifact
105130
if: ${{ !cancelled() }}
106-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
131+
uses: namespace-actions/upload-artifact@v0
107132
with:
108133
name: playwright-html-report
109134
path: e2e-test/playwright-report

e2e-test/playwright.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
video: 'retain-on-failure',
99
browserName: 'chromium',
1010
},
11+
workers: process.env.PW_WORKERS ?? undefined,
1112
testDir: './tests',
1213
fullyParallel: true,
1314
forbidOnly: !!process.env.CI,

0 commit comments

Comments
 (0)