Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
wpt:
name: web platform tests

# Don't run the CI with draft PR.
if: github.event.pull_request.draft == false
# Only for PR without draft.
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false

runs-on: ubuntu-latest

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/zig-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ jobs:
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

Expand Down
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn main() !void {
const alloc = if (builtin.mode == .Debug) gpa.allocator() else std.heap.c_allocator;

defer if (builtin.mode == .Debug) {
_ = gpa.detectLeaks();
if (gpa.detectLeaks()) std.posix.exit(1);
};

var args_arena = std.heap.ArenaAllocator.init(alloc);
Expand Down
2 changes: 1 addition & 1 deletion vendor/zig-js-runtime