Skip to content

Commit 56b1c7b

Browse files
committed
ci: run wpt test nightly
1 parent e451397 commit 56b1c7b

File tree

1 file changed

+3
-57
lines changed

1 file changed

+3
-57
lines changed

.github/workflows/wpt.yml

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,69 +7,18 @@ 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:
4117
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-
timeout-minutes: 90
49-
50-
steps:
51-
- uses: actions/checkout@v4
52-
with:
53-
fetch-depth: 0
54-
# fetch submodules recusively, to get zig-js-runtime submodules also.
55-
submodules: recursive
56-
57-
- uses: ./.github/actions/install
58-
59-
- run: zig build wpt -- --summary
60-
61-
# For now WPT tests doesn't pass at all.
62-
# We accept then to continue the job on failure.
63-
# TODO remove the continue-on-error when tests will pass.
64-
continue-on-error: true
65-
66-
wpt-json:
6718
name: web platform tests json output
6819

69-
# Don't execute on PR
70-
if: github.event_name != 'pull_request'
71-
7220
runs-on: ubuntu-latest
21+
timeout-minutes: 90
7322

7423
steps:
7524
- uses: actions/checkout@v4
@@ -100,9 +49,6 @@ jobs:
10049
name: perf-fmt
10150
needs: wpt-json
10251

103-
# Don't execute on PR
104-
if: github.event_name != 'pull_request'
105-
10652
runs-on: ubuntu-latest
10753
timeout-minutes: 15
10854

0 commit comments

Comments
 (0)