Skip to content

Commit c95d739

Browse files
committed
ci: add test end to end
using puppeteer test from https://github.com/lightpanda-io/demo
1 parent c55849c commit c95d739

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/zig-test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ jobs:
5656
- name: zig build debug
5757
run: zig build -Dengine=v8
5858

59+
- name: upload artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: lightpanda-build-dev
63+
path: |
64+
zig-out/bin/lightpanda
65+
retention-days: 1
66+
5967
zig-build-release:
6068
name: zig build release
6169

@@ -131,3 +139,30 @@ jobs:
131139

132140
- name: format and send json result
133141
run: /perf-fmt bench-browser ${{ github.sha }} bench.json
142+
143+
demo-puppeteer:
144+
name: demo-puppeteer
145+
needs: zig-build-dev
146+
147+
runs-on: ubuntu-latest
148+
149+
steps:
150+
- uses: actions/checkout@v4
151+
with:
152+
repository: 'lightpanda-io/demo'
153+
fetch-depth: 0
154+
155+
- run: npm install
156+
157+
- name: download artifact
158+
uses: actions/download-artifact@v4
159+
with:
160+
name: lightpanda-build-dev
161+
162+
- run: chmod a+x ./lightpanda
163+
164+
- name: run puppeteer
165+
run: |
166+
python3 -m http.server 1234 -d ./public &
167+
./lightpanda &
168+
RUNS=2 npm run bench-puppeteer-cdp

0 commit comments

Comments
 (0)