Skip to content
12 changes: 12 additions & 0 deletions .github/workflows/reusable-build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Runs the build script.
# - Prepares the directory structure for the ZIP.
Expand All @@ -34,6 +36,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-check-built-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Configures caching for Composer.
# - Installs Composer dependencies.
Expand All @@ -41,6 +43,16 @@ jobs:
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-coding-standards-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Logs debug information about the GitHub Action runner.
# - Installs npm dependencies.
Expand All @@ -39,6 +41,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
# Performs the following steps:
# - Sets environment variables.
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Logs debug information about the GitHub Action runner.
# - Installs npm dependencies.
Expand Down Expand Up @@ -81,6 +83,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Logs debug information about the GitHub Action runner.
# - Installs npm dependencies.
Expand All @@ -40,6 +42,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/reusable-performance-test-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:
# Performs the following steps:
# - Configure environment variables.
# - Checkout repository.
# - Set up Node.js.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Log debug information.
# - Install npm dependencies.
# - Install Playwright browsers.
Expand Down Expand Up @@ -121,6 +123,16 @@ jobs:
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '2' || '1' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-phpunit-tests-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
# Performs the following steps:
# - Sets environment variables.
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Sets up PHP.
# - Installs Composer dependencies.
Expand Down Expand Up @@ -136,6 +138,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-test-core-build-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Logs debug information about the GitHub Action runner.
# - Installs npm dependencies.
Expand All @@ -75,6 +77,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

# This date is used to ensure that the PHPCS cache is cleared at least once every week.
# http://man7.org/linux/man-pages/man1/date.1.html
- name: "Get last Monday's date"
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reusable-test-local-docker-environment-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
# Performs the following steps:
# - Sets environment variables.
# - Checks out the repository.
# - Retrieves the pinned commit hash for the Gutenberg repository.
# - Configures caching for the /gutenberg directory.
# - Sets up Node.js.
# - Sets up PHP.
# - Installs Composer dependencies.
Expand Down Expand Up @@ -91,6 +93,16 @@ jobs:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Retrieve the pinned Gutenberg SHA value
id: gutenberg-pinned-sha
run: echo "sha=$(jq -r '.gutenberg.ref' package.json)" >> "$GITHUB_OUTPUT"

- name: Configure caching for Gutenberg directory.
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: gutenberg
key: gutenberg-${{ steps.gutenberg-pinned-sha.outputs.sha }}-${{ hashFiles( 'tools/gutenberg/*', 'package*.json', 'Gruntfile.js' ) }}

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
Expand Down
Loading