Skip to content

Commit 148fc7e

Browse files
committed
Merge branch 'develop' into fix/1072
2 parents 828a08d + bc447b8 commit 148fc7e

22 files changed

Lines changed: 98 additions & 130 deletions

.github/workflows/build-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Setup proper PHP version
18-
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
18+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
1919
with:
2020
php-version: 8.3
2121

2222
- name: Setup node
23-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
23+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2424
with:
2525
node-version-file: .nvmrc
2626

@@ -36,7 +36,7 @@ jobs:
3636
npm run build:docs
3737
3838
- name: Deploy docs update
39-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
39+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
4040
with:
4141
github_token: ${{ secrets.GITHUB_TOKEN }}
4242
publish_dir: './docs/build'

.github/workflows/build-release-zip.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,21 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515

1616
- name: Setup node
17-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
17+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1818
with:
1919
cache: 'npm'
2020
node-version-file: .nvmrc
2121

22-
- name: Cache node_modules
23-
id: cache-node-modules
24-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
25-
env:
26-
cache-name: cache-node-modules
27-
with:
28-
path: node_modules
29-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
30-
31-
- name: Get composer cache directory
32-
id: composer-cache
33-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34-
35-
- name: Cache dependencies
36-
id: cache-composer
37-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
38-
env:
39-
cache-name: cache-composer
40-
with:
41-
path: ${{ steps.composer-cache.outputs.dir }}
42-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
43-
4422
- name: Install node dependencies
45-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
4623
run: npm ci --no-optional
4724

48-
- name: Install composer dependencies
49-
run: composer install --no-dev -o
25+
- name: Install Composer dependencies
26+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
27+
with:
28+
composer-options: '--no-dev -o'
5029

5130
- name: Build
5231
run: |
@@ -55,7 +34,7 @@ jobs:
5534
npm run archive
5635
5736
- name: Upload the ZIP file as an artifact
58-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
37+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5938
with:
6039
name: ${{ github.event.repository.name }}
6140
path: release

.github/workflows/close-stale-issues.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Close stale issues'
1+
name: Close stale issues
22

33
# **What it does**: Closes issues where the original author doesn't respond to a request for information.
44
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded.
@@ -15,7 +15,7 @@ jobs:
1515
stale:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
18+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
1919
with:
2020
days-before-stale: 7
2121
days-before-close: 7
@@ -33,4 +33,3 @@ jobs:
3333
close-issue-reason: 'not_planned'
3434
any-of-labels: 'reporter feedback'
3535
remove-stale-when-updated: true
36-

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: CodeQL
1313

1414
on:
1515
push:
1616
branches: [ develop, trunk ]
1717
pull_request:
18-
# The branches below must be a subset of the branches above
1918
branches: [ develop ]
2019
schedule:
2120
- cron: '24 4 * * 5'
@@ -38,11 +37,11 @@ jobs:
3837

3938
steps:
4039
- name: Checkout repository
41-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4241

4342
# Initializes the CodeQL tools for scanning.
4443
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
44+
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
4645
with:
4746
languages: ${{ matrix.language }}
4847
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +52,7 @@ jobs:
5352
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5453
# If this step fails, then you should remove it and run the build manually (see below)
5554
- name: Autobuild
56-
uses: github/codeql-action/autobuild@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
55+
uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
5756

5857
# ℹ️ Command-line programs to run using the OS shell.
5958
# 📚 https://git.io/JvXDl
@@ -67,4 +66,4 @@ jobs:
6766
# make release
6867

6968
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
69+
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5

.github/workflows/cypress.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,33 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727

28-
- name: Install dependencies
29-
run: npm install
28+
- name: Install Composer dependencies
29+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
3030

31-
- name: Composer (optional)
32-
run: composer update -W
33-
continue-on-error: true
31+
- name: Setup Node.js
32+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
33+
with:
34+
cache: 'npm'
35+
node-version-file: '.nvmrc'
36+
37+
- name: Install NPM dependencies
38+
run: npm ci
3439

35-
- name: Build (optional)
40+
- name: Build
3641
run: npm run build
37-
continue-on-error: true
3842

3943
- name: Set the core version
4044
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }}
4145

42-
- name: Set up WP environment
43-
run: npm run env:start
46+
- name: Start the Docker testing environment
47+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
48+
with:
49+
timeout_minutes: 10
50+
max_attempts: 3
51+
command: |
52+
npm run env:start
4453
4554
- name: Test
4655
run: npm run cypress:run
@@ -54,7 +63,7 @@ jobs:
5463
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
5564
5665
- name: Upload artifacts
57-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
66+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5867
if: failure()
5968
with:
6069
name: cypress-artifact-classifai-wp-${{ matrix.core.name }}

.github/workflows/dependency-review.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Source repository: https://github.com/actions/dependency-review-action
66
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7-
name: 'Dependency Review'
7+
name: Dependency Review
88
on: [pull_request]
99

1010
permissions:
@@ -14,11 +14,11 @@ jobs:
1414
dependency-review:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: 'Checkout Repository'
18-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
- name: Checkout Repository
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: Dependency Review
21-
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3
21+
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
2222
with:
2323
license-check: true
2424
vulnerability-check: false

.github/workflows/eslint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

2626
- name: Setup node and npm cache
27-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
27+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2828
with:
2929
node-version-file: .nvmrc
3030
cache: npm
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Get updated JS files
3636
id: changed-files
37-
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
37+
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
3838
with:
3939
files: |
4040
**/*.js

.github/workflows/php-compat.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,19 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Setup proper PHP version
26-
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
26+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
2727
with:
2828
php-version: 7.4
2929

30-
- name: Get composer cache directory
31-
id: composer-cache
32-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
33-
34-
- name: Cache dependencies
35-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
30+
- name: Install Composer dependencies
31+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
3632
with:
37-
path: ${{ steps.composer-cache.outputs.dir }}
38-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
39-
40-
- name: Install dependencies
41-
run: composer install --prefer-dist
33+
composer-options: '--prefer-dist'
4234

4335
- name: Run PHP Compatibility
4436
run: ./vendor/bin/phpcs --standard=./phpcs-compat.xml.dist -p .

.github/workflows/phpcs.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,27 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323

2424
- name: Setup proper PHP version
25-
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
25+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
2626
with:
2727
php-version: 7.4
2828

29-
- name: Get composer cache directory
30-
id: composer-cache
31-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
32-
33-
- name: Cache dependencies
34-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
35-
with:
36-
path: ${{ steps.composer-cache.outputs.dir }}
37-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38-
3929
- name: Get changed files
4030
id: changed-files
41-
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
31+
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
4232
with:
4333
files: |
4434
**/*.php
4535
46-
- name: Install dependencies
47-
run: composer install --prefer-dist
36+
- name: Install Composer dependencies
37+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
38+
with:
39+
composer-options: '--prefer-dist'
4840

4941
- name: Run PHP_CodeSniffer
5042
run: |
5143
HEAD_REF=$(git rev-parse HEAD)
5244
git checkout $HEAD_REF
5345
./vendor/bin/phpcs-changed -s --git --git-base origin/${{ github.base_ref }} ${{ steps.changed-files.outputs.all_changed_files }}
54-

.github/workflows/phpstan.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,17 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424

2525
- name: Set PHP version
26-
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
26+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
2727
with:
2828
php-version: '7.4'
2929
coverage: none
3030
tools: composer:v2
3131

32-
- name: Get composer cache directory
33-
id: composer-cache
34-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
35-
36-
- name: Cache dependencies
37-
id: cache-composer
38-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
39-
env:
40-
cache-name: cache-composer
41-
with:
42-
path: ${{ steps.composer-cache.outputs.dir }}
43-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
44-
45-
- name: Install dependencies
46-
run: composer install
32+
- name: Install Composer dependencies
33+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
4734

4835
- name: PHPStan
4936
run: composer phpstan

0 commit comments

Comments
 (0)