Skip to content

Commit 285048e

Browse files
committed
Build/Test Tools: Do not cancel previous workflow runs.
When a workflow is cancelled, it’s marked as a failure. This is not ideal because the commit attached to the workflow run will appear as though it introduced a problem, but this may not be true. Because GitHub Actions work a bit differently than Travis builds, it’s unlikely that the same bottleneck will be encountered in workflows. This change removes all workflow job steps that cancel previous workflows. See #50401. git-svn-id: https://develop.svn.wordpress.org/trunk@49168 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 45432f4 commit 285048e

4 files changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/end-to-end-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
# Runs the end-to-end test suite.
1717
#
1818
# Performs the following steps:
19-
# - Cancels all previous workflow runs that have not completed.
2019
# - Set environment variables.
2120
# - Checks out the repository.
2221
# - Logs debug information about the runner container.
@@ -35,11 +34,6 @@ jobs:
3534
name: E2E Tests
3635
runs-on: ubuntu-latest
3736
steps:
38-
- name: Cancel previous runs of this workflow
39-
uses: styfle/cancel-workflow-action@0.5.0
40-
with:
41-
access_token: ${{ github.token }}
42-
4337
- name: Configure environment variables
4438
run: |
4539
echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV

.github/workflows/javascript-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
# Runs the QUnit tests for WordPress.
1212
#
1313
# Performs the following steps:
14-
# - Cancels all previous workflow runs that have not completed.
1514
# - Checks out the repository.
1615
# - Logs debug information about the runner container.
1716
# - Installs NodeJS 12 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)
@@ -24,11 +23,6 @@ jobs:
2423
name: QUnit Tests
2524
runs-on: ubuntu-latest
2625
steps:
27-
- name: Cancel previous runs of this workflow
28-
uses: styfle/cancel-workflow-action@0.5.0
29-
with:
30-
access_token: ${{ github.token }}
31-
3226
- name: Checkout repository
3327
uses: actions/checkout@v2
3428

.github/workflows/phpunit-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
# Sets up WordPress for testing or development use.
2323
#
2424
# Performs the following steps:
25-
# - Cancels all previous workflow runs that have not completed.
2625
# - Checks out the repository.
2726
# - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).
2827
# - Logs debug information about the runner container.
@@ -37,11 +36,6 @@ jobs:
3736
runs-on: ubuntu-latest
3837

3938
steps:
40-
- name: Cancel previous runs of this workflow
41-
uses: styfle/cancel-workflow-action@0.5.0
42-
with:
43-
access_token: ${{ github.token }}
44-
4539
- name: Checkout repository
4640
uses: actions/checkout@v2
4741

.github/workflows/verify-npm-on-windows.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
# Verifies that installing NPM dependencies and building WordPress works on Windows.
1212
#
1313
# Performs the following steps:
14-
# - Cancels all previous workflow runs that have not completed.
1514
# - Checks out the repository.
1615
# - Logs debug information about the runner container.
1716
# - Installs NodeJS 12 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)
@@ -22,11 +21,6 @@ jobs:
2221
name: Tests NPM on Windows
2322
runs-on: windows-latest
2423
steps:
25-
- name: Cancel previous runs of this workflow
26-
uses: styfle/cancel-workflow-action@0.5.0
27-
with:
28-
access_token: ${{ github.token }}
29-
3024
- name: Checkout repository
3125
uses: actions/checkout@v2
3226

0 commit comments

Comments
 (0)