mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 20:51:55 +02:00
Build/Test Tools: Update third-party GitHub Actions.
This updates the following third-party GitHub Actions to their latest versions: - `actions/setup-node` from `3.8.1` to `4.0.1` - `actions/upload-artifact` from `3.1.2` to `4.3.0` - `shivammathur/setup-php` from `2.28.0` to `2.29.0` - `actions/cache` from `3.3.2` to `4.0.0` - `codecov/codecov-action` from `3.1.4` to `3.1.5` Most notably, these updates silence newly encountered notices as a result of GitHub beginning to transition away from Node.js 16 to Node.js 20 (see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/). Props swissspidy. See #59805. git-svn-id: https://develop.svn.wordpress.org/trunk@57362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3cb6f03541
commit
d7d91b8f90
@ -46,7 +46,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
check-latest: true
|
||||
@ -79,7 +79,7 @@ jobs:
|
||||
run: git diff --exit-code
|
||||
|
||||
- name: Upload ZIP as a GitHub Actions artifact
|
||||
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
|
||||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
||||
if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}
|
||||
with:
|
||||
name: wordpress-build-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
check-latest: true
|
||||
|
6
.github/workflows/coding-standards.yml
vendored
6
.github/workflows/coding-standards.yml
vendored
@ -75,7 +75,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: 'latest'
|
||||
coverage: none
|
||||
@ -88,7 +88,7 @@ jobs:
|
||||
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PHPCS scan cache
|
||||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
|
||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||
with:
|
||||
path: |
|
||||
.cache/phpcs-src.json
|
||||
@ -152,7 +152,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
|
4
.github/workflows/end-to-end-tests.yml
vendored
4
.github/workflows/end-to-end-tests.yml
vendored
@ -76,7 +76,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -127,7 +127,7 @@ jobs:
|
||||
run: npm run test:e2e
|
||||
|
||||
- name: Archive debug artifacts (screenshots, HTML snapshots)
|
||||
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
|
||||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
||||
if: always()
|
||||
with:
|
||||
name: failures-artifacts${{ matrix.LOCAL_SCRIPT_DEBUG && '-SCRIPT_DEBUG' || '' }}-${{ github.run_id }}
|
||||
|
2
.github/workflows/install-testing.yml
vendored
2
.github/workflows/install-testing.yml
vendored
@ -141,7 +141,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Set up PHP ${{ matrix.php }}
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: '${{ matrix.php }}'
|
||||
coverage: none
|
||||
|
2
.github/workflows/javascript-tests.yml
vendored
2
.github/workflows/javascript-tests.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
|
6
.github/workflows/performance.yml
vendored
6
.github/workflows/performance.yml
vendored
@ -110,7 +110,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -192,7 +192,7 @@ jobs:
|
||||
git reset --hard $TARGET_SHA
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -220,7 +220,7 @@ jobs:
|
||||
run: git reset --hard $GITHUB_SHA
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
|
4
.github/workflows/php-compatibility.yml
vendored
4
.github/workflows/php-compatibility.yml
vendored
@ -70,7 +70,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: '7.4'
|
||||
coverage: none
|
||||
@ -87,7 +87,7 @@ jobs:
|
||||
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PHP compatibility scan cache
|
||||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
|
||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||
with:
|
||||
path: .cache/phpcompat.json
|
||||
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}
|
||||
|
4
.github/workflows/phpunit-tests-run.yml
vendored
4
.github/workflows/phpunit-tests-run.yml
vendored
@ -90,7 +90,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -103,7 +103,7 @@ jobs:
|
||||
# dependency versions are installed and cached.
|
||||
##
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: '${{ inputs.php }}'
|
||||
coverage: none
|
||||
|
@ -131,7 +131,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -187,7 +187,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Upload theme ZIP as an artifact
|
||||
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
|
||||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: ${{ matrix.theme }}
|
||||
|
2
.github/workflows/test-build-processes.yml
vendored
2
.github/workflows/test-build-processes.yml
vendored
@ -124,7 +124,7 @@ jobs:
|
||||
echo ${{ github.event.number }} > ./pr-number/NR
|
||||
|
||||
- name: Upload PR number as artifact
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
||||
with:
|
||||
name: pr-number
|
||||
path: pr-number/
|
||||
|
8
.github/workflows/test-coverage.yml
vendored
8
.github/workflows/test-coverage.yml
vendored
@ -81,7 +81,7 @@ jobs:
|
||||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
@ -94,7 +94,7 @@ jobs:
|
||||
# dependency versions are installed and cached.
|
||||
##
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: '7.4'
|
||||
coverage: none
|
||||
@ -152,7 +152,7 @@ jobs:
|
||||
|
||||
- name: Upload single site report to Codecov
|
||||
if: ${{ ! matrix.multisite && github.event_name != 'pull_request' }}
|
||||
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
|
||||
uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5
|
||||
with:
|
||||
file: wp-code-coverage-single-clover-${{ github.sha }}.xml
|
||||
flags: single,php
|
||||
@ -167,7 +167,7 @@ jobs:
|
||||
|
||||
- name: Upload multisite report to Codecov
|
||||
if: ${{ matrix.multisite && github.event_name != 'pull_request' }}
|
||||
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
|
||||
uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5
|
||||
with:
|
||||
file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
|
||||
flags: multisite,php
|
||||
|
2
.github/workflows/upgrade-testing-run.yml
vendored
2
.github/workflows/upgrade-testing-run.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Set up PHP ${{ inputs.php }}
|
||||
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
|
||||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
|
||||
with:
|
||||
php-version: '${{ inputs.php }}'
|
||||
coverage: none
|
||||
|
Loading…
x
Reference in New Issue
Block a user