Skip to content

Commit 7c72203

Browse files
committed
Remove Remove push and pull_request events.
1 parent ec143fa commit 7c72203

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
name: Test
1+
name: WordPress PHPUnit tests
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
# Workflows can be run on a schedule using the 'schedule' event trigger.
4+
# The workflow should be run on a schedule using the 'schedule' event trigger.
85
#
9-
# The example below runs the workflow every three hours.
6+
# For more details on how to configure the schedule event, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule.
107
#
11-
# For more details on how to use the schedule event, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule.
12-
#
13-
# schedule:
14-
# - cron: '0 0/3 * * *'
15-
pull_request:
8+
# Below are some options for different schedules. Running the tests every hour is recommended,
9+
# but every 3-6 hours is also helpful. Times are in UTC.
10+
schedule:
11+
# By default, the workflow will run every hour.
12+
- cron: '0 * * * *'
13+
# Every 3 hours.
14+
# - cron: '0 0/3 * * *'
15+
# Every 6 hours.
16+
# - cron: '0 0/6 * * *'
17+
# Every 12 hours.
18+
# - cron: '0 0/12 * * *'
19+
# Once per day at 00:00.
20+
# - cron: '0 0 * * *'
21+
# Every 30 minutes.
22+
# - cron: '0/30 * * * *'
1623

1724
# Cancels all previous workflow runs for pull requests that have not completed.
1825
concurrency:
@@ -67,15 +74,15 @@ jobs:
6774
node-version: 14
6875
cache: npm
6976

70-
- name: Prepare step
77+
- name: Prepare environment
7178
run: php prepare.php
7279

73-
- name: Run tests
80+
- name: Run unit tests
7481
run: php test.php
7582
# Prevent the workflow from stopping if there are test failures.
7683
continue-on-error: true
7784

78-
- name: Report tests
85+
- name: Report the results
7986
run: php report.php
8087

8188
- name: Cleanup

0 commit comments

Comments
 (0)