Skip to content

Commit 35ce884

Browse files
committed
Add Playwright testing to test workflow
1 parent a10e6b9 commit 35ce884

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@ jobs:
6262
load: true
6363
- name: Run Perl tests
6464
run: docker run -i ${{ steps.docker-build-test.outputs.imageid }}
65+
playwright:
66+
runs-on: ubuntu-24.04
67+
name: Run via Docker
68+
steps:
69+
- name: Build test image
70+
id: docker-build-test
71+
uses: docker/build-push-action@v6
72+
with:
73+
target: server
74+
push: false
75+
load: true
76+
- name: Run Perl tests
77+
run: >
78+
docker run -d -i -p 80:8000
79+
${{ steps.docker-build-test.outputs.imageid }}
80+
- uses: actions/setup-node@v4
81+
with:
82+
node-version: 22
83+
- name: Install Playwright Browsers
84+
run: ./bin/install-playwright
85+
- name: Run Playwright tests
86+
run: npx playwright test
6587
test:
6688
runs-on: ubuntu-24.04
6789
name: Dockerless

0 commit comments

Comments
 (0)