mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Build/Test Tools: Update all 3rd party GitHub actions to the latest versions.
See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@52183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
12
.github/workflows/coding-standards.yml
vendored
12
.github/workflows/coding-standards.yml
vendored
@@ -62,10 +62,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.0
|
||||
uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
|
||||
with:
|
||||
php-version: '7.4'
|
||||
coverage: none
|
||||
@@ -83,13 +83,13 @@ jobs:
|
||||
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
|
||||
|
||||
- name: Cache PHPCS scan cache
|
||||
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
|
||||
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
|
||||
with:
|
||||
path: .cache/phpcs.json
|
||||
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json') }}
|
||||
|
||||
- name: Install Composer dependencies
|
||||
uses: ramsey/composer-install@92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.0
|
||||
uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
|
||||
with:
|
||||
composer-options: "--no-progress --no-ansi --no-interaction"
|
||||
|
||||
@@ -129,7 +129,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -139,7 +139,7 @@ jobs:
|
||||
svn --version
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
|
||||
4
.github/workflows/end-to-end-tests.yml
vendored
4
.github/workflows/end-to-end-tests.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
||||
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -70,7 +70,7 @@ jobs:
|
||||
locale -a
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
|
||||
4
.github/workflows/javascript-tests.yml
vendored
4
.github/workflows/javascript-tests.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
svn --version
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
|
||||
8
.github/workflows/php-compatibility.yml
vendored
8
.github/workflows/php-compatibility.yml
vendored
@@ -56,10 +56,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.0
|
||||
uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
|
||||
with:
|
||||
php-version: '7.4'
|
||||
coverage: none
|
||||
@@ -77,13 +77,13 @@ jobs:
|
||||
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
|
||||
|
||||
- name: Cache PHP compatibility scan cache
|
||||
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
|
||||
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
|
||||
with:
|
||||
path: .cache/phpcompat.json
|
||||
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json') }}
|
||||
|
||||
- name: Install Composer dependencies
|
||||
uses: ramsey/composer-install@92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.0
|
||||
uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
|
||||
with:
|
||||
composer-options: "--no-progress --no-ansi --no-interaction"
|
||||
|
||||
|
||||
8
.github/workflows/phpunit-tests.yml
vendored
8
.github/workflows/phpunit-tests.yml
vendored
@@ -109,10 +109,10 @@ jobs:
|
||||
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
@@ -131,7 +131,7 @@ jobs:
|
||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
|
||||
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
|
||||
env:
|
||||
cache-name: cache-composer-dependencies
|
||||
with:
|
||||
@@ -230,7 +230,7 @@ jobs:
|
||||
|
||||
- name: Checkout the WordPress Test Reporter
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
with:
|
||||
repository: 'WordPress/phpunit-test-runner'
|
||||
path: 'test-runner'
|
||||
|
||||
8
.github/workflows/slack-notifications.yml
vendored
8
.github/workflows/slack-notifications.yml
vendored
@@ -134,7 +134,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Post failure notifications to Slack
|
||||
uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0
|
||||
uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0
|
||||
with:
|
||||
payload: ${{ needs.prepare.outputs.payload }}
|
||||
env:
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Post failure notifications to Slack
|
||||
uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0
|
||||
uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0
|
||||
with:
|
||||
payload: ${{ needs.prepare.outputs.payload }}
|
||||
env:
|
||||
@@ -164,7 +164,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Post success notifications to Slack
|
||||
uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0
|
||||
uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0
|
||||
with:
|
||||
payload: ${{ needs.prepare.outputs.payload }}
|
||||
env:
|
||||
@@ -179,7 +179,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Post cancelled notifications to Slack
|
||||
uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0
|
||||
uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0
|
||||
with:
|
||||
payload: ${{ needs.prepare.outputs.payload }}
|
||||
env:
|
||||
|
||||
10
.github/workflows/test-coverage.yml
vendored
10
.github/workflows/test-coverage.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
locale -a
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
|
||||
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
|
||||
env:
|
||||
cache-name: cache-composer-dependencies
|
||||
with:
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
|
||||
- name: Upload single site report to Codecov
|
||||
if: ${{ ! matrix.multisite }}
|
||||
uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
|
||||
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
|
||||
with:
|
||||
file: wp-code-coverage-single-clover-${{ github.sha }}.xml
|
||||
flags: single,php
|
||||
@@ -163,7 +163,7 @@ jobs:
|
||||
|
||||
- name: Upload multisite report to Codecov
|
||||
if: ${{ matrix.multisite }}
|
||||
uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
|
||||
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
|
||||
with:
|
||||
file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
|
||||
flags: multisite,php
|
||||
|
||||
8
.github/workflows/test-npm.yml
vendored
8
.github/workflows/test-npm.yml
vendored
@@ -58,7 +58,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -69,7 +69,7 @@ jobs:
|
||||
svn --version
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
@@ -116,7 +116,7 @@ jobs:
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
|
||||
|
||||
- name: Log debug information
|
||||
run: |
|
||||
@@ -127,7 +127,7 @@ jobs:
|
||||
svn --version
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2
|
||||
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
|
||||
with:
|
||||
node-version: 14
|
||||
cache: npm
|
||||
|
||||
4
.github/workflows/test-old-branches.yml
vendored
4
.github/workflows/test-old-branches.yml
vendored
@@ -57,12 +57,12 @@ jobs:
|
||||
# Run all branches monthly, but only the currently supported one twice per month.
|
||||
steps:
|
||||
- name: Dispatch workflow run
|
||||
uses: actions/github-script@47f7cf65b5ced0830a325f705cad64f2f58dddf7 # v3.1.0
|
||||
uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0
|
||||
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '5.7' }}
|
||||
with:
|
||||
github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}
|
||||
script: |
|
||||
github.actions.createWorkflowDispatch({
|
||||
github.rest.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: '${{ matrix.workflow }}',
|
||||
|
||||
Reference in New Issue
Block a user