Skip to content

Commit d84060f

Browse files
ci(docker): gate image build on playwright e2e
1 parent fa30b1a commit d84060f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,30 @@ env:
2424
IMAGE_NAME: ${{ github.repository }}
2525

2626
jobs:
27+
e2e:
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 45
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v6
34+
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
40+
- name: Install dependencies
41+
run: npm install
42+
43+
- name: Install Playwright Chromium
44+
run: npx playwright install --with-deps chromium
45+
46+
- name: Run Playwright tests
47+
run: npm run test:e2e
48+
2749
build:
50+
needs: e2e
2851
runs-on: ubuntu-latest
2952
strategy:
3053
fail-fast: false

0 commit comments

Comments
 (0)