mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
wpt: use auo-restart browser feature of wpt runner
This commit is contained in:
13
.github/workflows/wpt.yml
vendored
13
.github/workflows/wpt.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/install
|
- uses: ./.github/actions/install
|
||||||
|
|
||||||
- name: zig build release
|
- name: zig build release
|
||||||
run: zig build -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast
|
run: zig build -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -71,7 +71,8 @@ jobs:
|
|||||||
- wpt-build-release
|
- wpt-build-release
|
||||||
- wpt-build-runner
|
- wpt-build-runner
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
# use a self host runner.
|
||||||
|
runs-on: lpd-bench-hetzner
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -103,12 +104,10 @@ jobs:
|
|||||||
|
|
||||||
- name: run test with json output
|
- name: run test with json output
|
||||||
run: |
|
run: |
|
||||||
./wpt serve & echo $! > WPT.pid
|
./wpt serve 2> /dev/null & echo $! > WPT.pid
|
||||||
sleep 10s
|
sleep 10s
|
||||||
./lightpanda serve --insecure_disable_tls_host_verification --log_level error & echo $! > LPD.pid
|
./wptrunner -lpd-path ./lightpanda -json -concurrency 5 > wpt.json
|
||||||
sleep 1s
|
kill `cat WPT.pid`
|
||||||
./wptrunner -json -concurrency 2 > wpt.json
|
|
||||||
kill `cat WPT.pid` `cat LPD.pid`
|
|
||||||
|
|
||||||
- name: write commit
|
- name: write commit
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user