|
7 | 7 | AWS_REGION: ${{ vars.LPD_PERF_AWS_REGION }} |
8 | 8 |
|
9 | 9 | 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 * * *" |
21 | 12 |
|
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/**" |
37 | 13 | # Allows you to run this workflow manually from the Actions tab |
38 | 14 | workflow_dispatch: |
39 | 15 |
|
40 | 16 | jobs: |
41 | 17 | 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: |
67 | 18 | name: web platform tests json output |
68 | 19 |
|
69 | | - # Don't execute on PR |
70 | | - if: github.event_name != 'pull_request' |
71 | | - |
72 | 20 | runs-on: ubuntu-latest |
| 21 | + timeout-minutes: 90 |
73 | 22 |
|
74 | 23 | steps: |
75 | 24 | - uses: actions/checkout@v4 |
|
100 | 49 | name: perf-fmt |
101 | 50 | needs: wpt-json |
102 | 51 |
|
103 | | - # Don't execute on PR |
104 | | - if: github.event_name != 'pull_request' |
105 | | - |
106 | 52 | runs-on: ubuntu-latest |
107 | 53 | timeout-minutes: 15 |
108 | 54 |
|
|
0 commit comments