Skip to content

Commit dd597b0

Browse files
committed
Build/Test Tools: Update 3rd-party GitHub Actions.
This updates the following GitHub Actions to their latest versions: - `actions/cache` - `actions/checkout` - `actions/setup-node` - `actions/upload-artifact` - `codecov/codecov-action` - `shivammathur/setup-php` See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@59716 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7091fcd commit dd597b0

15 files changed

+45
-45
lines changed

.github/workflows/install-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
116116
steps:
117117
- name: Set up PHP ${{ matrix.php }}
118-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
118+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
119119
with:
120120
php-version: '${{ matrix.php }}'
121121
coverage: none

.github/workflows/reusable-coding-standards-javascript.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434

3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838
with:
3939
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
4040
persist-credentials: false
4141

4242
- name: Set up Node.js
43-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
43+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
4444
with:
4545
node-version-file: '.nvmrc'
4646
cache: npm

.github/workflows/reusable-coding-standards-php.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050
with:
5151
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
5252
persist-credentials: false
5353

5454
- name: Set up PHP
55-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
55+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
5656
with:
5757
php-version: ${{ inputs.php-version }}
5858
coverage: none
@@ -65,7 +65,7 @@ jobs:
6565
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
6666

6767
- name: Cache PHPCS scan cache
68-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
68+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
6969
with:
7070
path: |
7171
.cache/phpcs-src.json

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
7272
7373
- name: Checkout repository
74-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
74+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7575
with:
7676
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
7777
persist-credentials: false
7878

7979
- name: Set up Node.js
80-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
80+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
8181
with:
8282
node-version-file: '.nvmrc'
8383
cache: npm
@@ -139,7 +139,7 @@ jobs:
139139
run: npm run test:e2e
140140

141141
- name: Archive debug artifacts (screenshots, HTML snapshots)
142-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
142+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
143143
if: always()
144144
with:
145145
name: failures-artifacts${{ inputs.LOCAL_SCRIPT_DEBUG && '-SCRIPT_DEBUG' || '' }}-${{ github.run_id }}

.github/workflows/reusable-javascript-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939
with:
4040
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
4141
persist-credentials: false
4242

4343
- name: Set up Node.js
44-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
44+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
4545
with:
4646
node-version-file: '.nvmrc'
4747
cache: npm

.github/workflows/reusable-performance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
128128
129129
- name: Checkout repository
130-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
130+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131131
with:
132132
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
133133
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '2' || '1' }}
@@ -139,7 +139,7 @@ jobs:
139139
run: echo "TARGET_SHA=$(git rev-parse HEAD^1)" >> "$GITHUB_ENV"
140140

141141
- name: Set up Node.js
142-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
142+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
143143
with:
144144
node-version-file: '.nvmrc'
145145
cache: npm
@@ -312,7 +312,7 @@ jobs:
312312
run: npm run test:performance
313313

314314
- name: Archive artifacts
315-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
315+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
316316
if: always()
317317
with:
318318
name: performance-artifacts${{ inputs.multisite && '-multisite' || '' }}${{ inputs.memcached && '-memcached' || '' }}-${{ github.run_id }}

.github/workflows/reusable-php-compatibility.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040

4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
with:
4545
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
4646
persist-credentials: false
4747

4848
- name: Set up PHP
49-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
49+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
5050
with:
5151
php-version: ${{ inputs.php-version }}
5252
coverage: none
@@ -63,7 +63,7 @@ jobs:
6363
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
6464

6565
- name: Cache PHP compatibility scan cache
66-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
66+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
6767
with:
6868
path: .cache/phpcompat.json
6969
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-php-${{ inputs.php-version }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}

.github/workflows/reusable-phpunit-tests-v1.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ jobs:
9595
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
9696
9797
- name: Checkout repository
98-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
98+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9999
with:
100100
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
101101
persist-credentials: false
102102

103103
- name: Set up Node.js
104-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
104+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
105105
with:
106106
node-version-file: '.nvmrc'
107107
cache: npm
@@ -119,7 +119,7 @@ jobs:
119119

120120
- name: Cache Composer dependencies
121121
if: ${{ env.COMPOSER_INSTALL == true }}
122-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
122+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
123123
env:
124124
cache-name: cache-composer-dependencies
125125
with:

.github/workflows/reusable-phpunit-tests-v2.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ jobs:
9797
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
9898
9999
- name: Checkout repository
100-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
100+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101101
with:
102102
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
103103
persist-credentials: false
104104

105105
- name: Install Node.js
106-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
106+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
107107
with:
108108
node-version-file: '.nvmrc'
109109
cache: npm
@@ -116,7 +116,7 @@ jobs:
116116
run: echo "composer_dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
117117

118118
- name: Cache Composer dependencies
119-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
119+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
120120
env:
121121
cache-name: cache-composer-dependencies
122122
with:

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ jobs:
129129
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
130130
131131
- name: Checkout repository
132-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
132+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
133133
with:
134134
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
135135
persist-credentials: false
136136

137137
- name: Set up Node.js
138-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
138+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
139139
with:
140140
node-version-file: '.nvmrc'
141141
cache: npm
@@ -148,7 +148,7 @@ jobs:
148148
# dependency versions are installed and cached.
149149
##
150150
- name: Set up PHP
151-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
151+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
152152
with:
153153
php-version: '${{ inputs.php }}'
154154
coverage: none
@@ -232,7 +232,7 @@ jobs:
232232

233233
- name: Upload test coverage report to Codecov
234234
if: ${{ inputs.coverage-report }}
235-
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
235+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
236236
with:
237237
token: ${{ secrets.CODECOV_TOKEN }}
238238
file: wp-code-coverage${{ inputs.multisite && '-multisite' || '-single' }}-${{ github.sha }}.xml
@@ -241,7 +241,7 @@ jobs:
241241

242242
- name: Upload HTML coverage report as artifact
243243
if: ${{ inputs.coverage-report }}
244-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
244+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
245245
with:
246246
name: wp-code-coverage${{ inputs.multisite && '-multisite' || '-single' }}-${{ github.sha }}
247247
path: wp-code-coverage${{ inputs.multisite && '-multisite' || '-single' }}-${{ github.sha }}
@@ -252,7 +252,7 @@ jobs:
252252

253253
- name: Checkout the WordPress Test Reporter
254254
if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
255-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
255+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
256256
with:
257257
repository: 'WordPress/phpunit-test-runner'
258258
path: 'test-runner'

0 commit comments

Comments
 (0)