Skip to content

Commit 7417745

Browse files
committed
add more comments
1 parent 46adf76 commit 7417745

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/workflows/custard-run-dev.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515
name: (experimental / dev) Custard run
1616

1717
on:
18-
push:
19-
branches:
20-
- main
18+
# Run tests when a pull request is created or updated.
19+
# This allows to run tests from forked repos (after reviewer's approval).
2120
workflow_run:
2221
workflows:
2322
- Custard CI # .github/workflows/custard-ci.yaml
2423
types:
2524
- in_progress
25+
26+
# Run tests again as validation when a PR merge into main.
27+
push:
28+
branches:
29+
- main
30+
31+
# To do manual runs through the Actions UI.
2632
workflow_dispatch:
2733
inputs:
2834
run-all:
@@ -36,9 +42,6 @@ on:
3642
description: Branch, tag, or commit SHA to run tests on
3743
type: string
3844
default: main
39-
# schedule:
40-
# # https://crontab.guru/#0_12_*_*_0
41-
# - cron: 0 12 * * 0 # At 12:00 on Sunday
4245

4346
jobs:
4447
affected:

.github/workflows/custard-run.yaml

+11-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515
name: (experimental) Custard run
1616

1717
on:
18-
push:
19-
branches:
20-
- main
18+
# Run tests when a pull request is created or updated.
19+
# This allows to run tests from forked repos (after reviewer's approval).
2120
workflow_run:
2221
workflows:
2322
- Custard CI # .github/workflows/custard-ci.yaml
2423
types:
2524
- in_progress
25+
26+
# Run tests again as validation when a PR merge into main.
27+
push:
28+
branches:
29+
- main
30+
31+
# To do manual runs through the Actions UI.
2632
workflow_dispatch:
2733
inputs:
2834
run-all:
@@ -36,6 +42,8 @@ on:
3642
description: Branch, tag, or commit SHA to run tests on
3743
type: string
3844
default: main
45+
46+
# For nightly tests.
3947
# schedule:
4048
# # https://crontab.guru/#0_12_*_*_0
4149
# - cron: 0 12 * * 0 # At 12:00 on Sunday

0 commit comments

Comments
 (0)