Skip to content

Commit f4bfe47

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

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,29 @@ 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: playwright test
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Build test image
71+
id: docker-build-test
72+
uses: docker/build-push-action@v6
73+
with:
74+
target: server
75+
push: false
76+
load: true
77+
- name: Run Perl tests
78+
run: >
79+
docker run -d -i -p 80:8000
80+
${{ steps.docker-build-test.outputs.imageid }}
81+
- uses: actions/setup-node@v4
82+
with:
83+
node-version: 22
84+
- name: Install Playwright Browsers
85+
run: ./bin/install-playwright
86+
- name: Run Playwright tests
87+
run: npx playwright test
6588
test:
6689
runs-on: ubuntu-24.04
6790
name: Dockerless

0 commit comments

Comments
 (0)