Skip to content

Commit a3045c9

Browse files
committed
ci: run demo's puppeteer scripts
1 parent 6b78b01 commit a3045c9

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/e2e-test.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
zig-out/bin/lightpanda
5858
retention-days: 1
5959

60-
puppeteer:
61-
name: puppeteer
60+
puppeteer-perf:
61+
name: puppeteer-perf
6262
needs: zig-build-release
6363

6464
env:
@@ -105,3 +105,35 @@ jobs:
105105
echo "puppeteer avg duration: $PUPPETEER_AVG_DURATION"
106106
test "$PUPPETEER_AVG_DURATION" -le "$MAX_AVG_DURATION"
107107
108+
demo-scripts:
109+
name: demo-scripts
110+
needs: zig-build-release
111+
112+
runs-on: ubuntu-latest
113+
114+
steps:
115+
- uses: actions/checkout@v4
116+
with:
117+
repository: 'lightpanda-io/demo'
118+
fetch-depth: 0
119+
120+
- run: npm install
121+
122+
- name: download artifact
123+
uses: actions/download-artifact@v4
124+
with:
125+
name: lightpanda-build-release
126+
127+
- run: chmod a+x ./lightpanda
128+
129+
- name: run puppeteer links
130+
run: |
131+
./lightpanda serve & echo $! > LPD.pid
132+
node puppeteer/links.js || exit 1
133+
kill `cat LPD.pid`
134+
135+
- name: run puppeteer dump
136+
run: |
137+
./lightpanda serve & echo $! > LPD.pid
138+
node puppeteer/dump.js || exit 1
139+
kill `cat LPD.pid`

0 commit comments

Comments
 (0)