Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove Remove push and pull_request events.
  • Loading branch information
desrosj committed Aug 18, 2021
commit 7c72203e457154074cf3d05eb131267ec27fb1bb
35 changes: 21 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: Test
name: WordPress PHPUnit tests

on:
push:
branches:
- master
# Workflows can be run on a schedule using the 'schedule' event trigger.
# The workflow should be run on a schedule using the 'schedule' event trigger.
#
# The example below runs the workflow every three hours.
# For more details on how to configure the schedule event, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule.
#
# For more details on how to use the schedule event, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule.
#
# schedule:
# - cron: '0 0/3 * * *'
pull_request:
# Below are some options for different schedules. Running the tests every hour is recommended,
# but every 3-6 hours is also helpful. Times are in UTC.
schedule:
# By default, the workflow will run every hour.
- cron: '0 * * * *'
# Every 3 hours.
# - cron: '0 0/3 * * *'
# Every 6 hours.
# - cron: '0 0/6 * * *'
# Every 12 hours.
# - cron: '0 0/12 * * *'
# Once per day at 00:00.
# - cron: '0 0 * * *'
# Every 30 minutes.
# - cron: '0/30 * * * *'

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
Expand Down Expand Up @@ -67,15 +74,15 @@ jobs:
node-version: 14
cache: npm

- name: Prepare step
- name: Prepare environment
run: php prepare.php

- name: Run tests
- name: Run unit tests
run: php test.php
# Prevent the workflow from stopping if there are test failures.
continue-on-error: true

- name: Report tests
- name: Report the results
run: php report.php

- name: Cleanup
Expand Down