From 98397401b802fe66d05e87d4461bc8d5be74e3d5 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 12 Jan 2026 08:11:55 +0100 Subject: [PATCH 1/3] ci: use compiled v8 with wpt tests --- .github/workflows/wpt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 489bd8dd..2011e766 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -31,7 +31,7 @@ jobs: - uses: ./.github/actions/install - name: json output - run: zig build wpt -- --json > wpt.json + run: zig build -Dprebuilt_v8_path=v8/libc_v8.a wpt -- --json > wpt.json - name: write commit run: | From c2e09d3084f59323e2a3829535b1e68404db0ec1 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 12 Jan 2026 08:28:03 +0100 Subject: [PATCH 2/3] ci: build only run cmd forbuild dev test --- .github/workflows/zig-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/zig-test.yml b/.github/workflows/zig-test.yml index cf40c990..c0e4ad5a 100644 --- a/.github/workflows/zig-test.yml +++ b/.github/workflows/zig-test.yml @@ -55,7 +55,7 @@ jobs: - uses: ./.github/actions/install - name: zig build debug - run: zig build -Dprebuilt_v8_path=v8/libc_v8.a + run: zig build -Dprebuilt_v8_path=v8/libc_v8.a run -- version - name: upload artifact uses: actions/upload-artifact@v4 From 933a93a7039f1bfc49fc445f7b21599426415899 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 12 Jan 2026 08:32:52 +0100 Subject: [PATCH 3/3] ci: move fetch tests into 2e2 --- .github/workflows/e2e-integration-test.yml | 16 ++++++++ .github/workflows/zig-test.yml | 46 ---------------------- 2 files changed, 16 insertions(+), 46 deletions(-) diff --git a/.github/workflows/e2e-integration-test.yml b/.github/workflows/e2e-integration-test.yml index 5bb24d1f..7a6de0ee 100644 --- a/.github/workflows/e2e-integration-test.yml +++ b/.github/workflows/e2e-integration-test.yml @@ -66,3 +66,19 @@ jobs: ./lightpanda serve & echo $! > LPD.pid go run integration/main.go kill `cat LPD.pid` + + browser-fetch: + name: browser fetch + needs: zig-build-release + + runs-on: ubuntu-latest + + steps: + - name: download artifact + uses: actions/download-artifact@v4 + with: + name: lightpanda-build-release + + - run: chmod a+x ./lightpanda + + - run: ./lightpanda fetch https://demo-browser.lightpanda.io/campfire-commerce/ diff --git a/.github/workflows/zig-test.yml b/.github/workflows/zig-test.yml index c0e4ad5a..3e05c7e5 100644 --- a/.github/workflows/zig-test.yml +++ b/.github/workflows/zig-test.yml @@ -38,52 +38,6 @@ on: workflow_dispatch: jobs: - zig-build-dev: - name: zig build dev - - # Don't run the CI with draft PR. - if: github.event.pull_request.draft == false - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - submodules: recursive - - - uses: ./.github/actions/install - - - name: zig build debug - run: zig build -Dprebuilt_v8_path=v8/libc_v8.a run -- version - - - name: upload artifact - uses: actions/upload-artifact@v4 - with: - name: lightpanda-build-dev - path: | - zig-out/bin/lightpanda - retention-days: 1 - - browser-fetch: - name: browser fetch - needs: zig-build-dev - - # Don't run the CI with draft PR. - if: github.event.pull_request.draft == false - - runs-on: ubuntu-latest - - steps: - - name: download artifact - uses: actions/download-artifact@v4 - with: - name: lightpanda-build-dev - - - run: chmod a+x ./lightpanda - - - run: ./lightpanda fetch https://httpbin.io/xhr/get - zig-test: name: zig test timeout-minutes: 15