Skip to content

Commit f63ea62

Browse files
committed
ci: refacto e2e http start/stop
1 parent ba7df8b commit f63ea62

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@ jobs:
159159

160160
- run: chmod a+x ./lightpanda
161161

162+
- name: start http
163+
run: go run ws/main.go & echo $! > WS.pid
164+
162165
- name: run puppeteer
163166
run: |
164-
go run ws/main.go & echo $! > WS.pid
165167
./lightpanda serve & echo $! > LPD.pid
166168
RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1
167169
cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM
168-
kill `cat LPD.pid` `cat WS.pid`
170+
kill `cat LPD.pid`
169171
170172
- name: puppeteer result
171173
run: cat puppeteer.out
@@ -180,9 +182,10 @@ jobs:
180182
181183
- name: run hyperfine
182184
run: |
183-
go run ws/main.go & echo $! > WS.pid
184185
hyperfine --export-json=hyperfine.json --warmup 3 --runs 20 --shell=none "./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/"
185-
kill `cat WS.pid`
186+
187+
- name: stop http
188+
run: kill `cat WS.pid`
186189

187190
- name: write commit
188191
run: |

0 commit comments

Comments
 (0)