You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+21-14Lines changed: 21 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,25 @@
1
-
name: Test
1
+
name: WordPress PHPUnit tests
2
2
3
3
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.
8
5
#
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.
10
7
#
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 * * * *'
16
23
17
24
# Cancels all previous workflow runs for pull requests that have not completed.
18
25
concurrency:
@@ -67,15 +74,15 @@ jobs:
67
74
node-version: 14
68
75
cache: npm
69
76
70
-
- name: Prepare step
77
+
- name: Prepare environment
71
78
run: php prepare.php
72
79
73
-
- name: Run tests
80
+
- name: Run unit tests
74
81
run: php test.php
75
82
# Prevent the workflow from stopping if there are test failures.
0 commit comments