Skip to content

Commit ffe6c8e

Browse files
committed
ci: run wpt test nightly
1 parent d9e5821 commit ffe6c8e

File tree

1 file changed

+2
-56
lines changed

1 file changed

+2
-56
lines changed

.github/workflows/wpt.yml

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -7,67 +7,16 @@ env:
77
AWS_REGION: ${{ vars.LPD_PERF_AWS_REGION }}
88

99
on:
10-
push:
11-
branches:
12-
- main
13-
paths:
14-
- "build.zig"
15-
- "src/**/*.zig"
16-
- "src/*.zig"
17-
- "tests/wpt/**"
18-
- "vendor/**"
19-
- ".github/**"
20-
pull_request:
10+
schedule:
11+
- cron: "23 2 * * *"
2112

22-
# By default GH trigger on types opened, synchronize and reopened.
23-
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
24-
# Since we skip the job when the PR is in draft state, we want to force CI
25-
# running when the PR is marked ready_for_review w/o other change.
26-
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
27-
types: [opened, synchronize, reopened, ready_for_review]
28-
29-
paths:
30-
- ".github/**"
31-
- "build.zig"
32-
- "src/**/*.zig"
33-
- "src/*.zig"
34-
- "tests/wpt/**"
35-
- "vendor/**"
36-
- ".github/**"
3713
# Allows you to run this workflow manually from the Actions tab
3814
workflow_dispatch:
3915

4016
jobs:
41-
wpt:
42-
name: web platform tests
43-
44-
# Only for PR without draft.
45-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
46-
47-
runs-on: ubuntu-latest
48-
49-
steps:
50-
- uses: actions/checkout@v4
51-
with:
52-
fetch-depth: 0
53-
# fetch submodules recusively, to get zig-js-runtime submodules also.
54-
submodules: recursive
55-
56-
- uses: ./.github/actions/install
57-
58-
- run: zig build wpt -- --summary
59-
60-
# For now WPT tests doesn't pass at all.
61-
# We accept then to continue the job on failure.
62-
# TODO remove the continue-on-error when tests will pass.
63-
continue-on-error: true
64-
6517
wpt-json:
6618
name: web platform tests json output
6719

68-
# Don't execute on PR
69-
if: github.event_name != 'pull_request'
70-
7120
runs-on: ubuntu-latest
7221

7322
steps:
@@ -99,9 +48,6 @@ jobs:
9948
name: perf-fmt
10049
needs: wpt-json
10150

102-
# Don't execute on PR
103-
if: github.event_name != 'pull_request'
104-
10551
runs-on: ubuntu-latest
10652
container:
10753
image: ghcr.io/lightpanda-io/perf-fmt:latest

0 commit comments

Comments
 (0)