Skip to content

Run the syntax-check checkout on a supported Node version - #102

Draft
boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:ci/checkout-node24-ready-34538
Draft

Run the syntax-check checkout on a supported Node version#102
boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:ci/checkout-node24-ready-34538

Conversation

@boo-code

@boo-code boo-code commented Sep 2, 2026

Copy link
Copy Markdown
Questions Answers
Description? The php-linter job pinned actions/checkout@v3.1.0 while the three PHPStan jobs in the same file use @v6. v3.1.0 targets Node 20, which GitHub deprecated on 2025-09-19, so every run of PHP tests annotates that job with a "forced to run on Node.js 24" warning. This aligns it with the rest of the file.
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? Part of PrestaShop/PrestaShop#34538
Sponsor company -
How to test? Open the annotations of a PHP tests run. Before, "PHP Syntax check 7.2 => 8.5" carries Node.js 20 is deprecated. The following actions target Node.js 20 ...: actions/checkout@v3.1.0. After, that annotation is gone.

Measured

Read off the annotations of the newest php.yml run on dev (run 33370758646, sha 10ef9aa), not
inferred from the file:

warning  Node.js 20 is deprecated ... actions/checkout@v3.1.0        <- this repo, php.yml:9
warning  Node.js 20 is deprecated ... actions/cache@v4, actions/checkout@v4
warning  Node.js 20 is deprecated ... actions/checkout@v3
warning  Node.js 20 is deprecated ... actions/upload-artifact@v4

Only the first line comes from this repository. @v6, used by the other three jobs in the same file,
appears in no warning — that is the in-repo control for the choice of version.

Scope

This removes one of the four warnings. The other three come from PrestaShop/.github and affect every
module repository using the shared CI, so they cannot be fixed here — see the issue comment for the
file-and-line inventory.

v7 is the current major, but the other three jobs in this file are on v6 and were not flagged, so v6
keeps the file internally consistent and still resolves the warning. Moving all four to v7 would be a
larger change than the reported symptom needs.

Checks

The workflow parses: Symfony\Component\Yaml\Yaml::parse() returns the five jobs php-linter,
php-cs-fixer, phpstan-74-81, phpstan-81-84, phpstan, with four checkout steps all at @v6.

The php-linter job still pinned actions/checkout@v3.1.0 while the three
PHPStan jobs in the same file use @v6. That pin targets Node 20, which
GitHub deprecated, so every run of PHP tests annotated the job with a
"forced to run on Node.js 24" warning.

Align it with the rest of the file.

See PrestaShop/PrestaShop#34538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant