Commit 32b824b
committed
minor #11 [CI] Test the suite against Node.js 22, 24 and 26 (Kocal)
This PR was merged into the main branch.
Discussion
----------
[CI] Test the suite against Node.js 22, 24 and 26
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
The `test` job used to run on a single Node version pinned by `.nvmrc` (Node 22). This PR adds a version matrix instead, testing Node 22, 24 and 26 across the three OSes we already cover (ubuntu, windows, macos), with readable job names like "Node 24 on ubuntu-latest". The `lint` job keeps using `.nvmrc`, no need to matrix that one.
- CI now runs the test suite on Node 22 x 24 x 26 x {ubuntu, windows, macos}.
- `engines.node` in both the root `package.json` and `assets/package.json` (the published ``@symfony`/reprise`) now declares the same support, using the enumerated form Webpack Encore uses: `^22.18.0 || ^24.11.0 || >=26.0`. This is stricter than the previous `>=22.18` on the published package since it excludes the odd, non-LTS majors (23, 25). The root `package.json` had no `engines` field at all before.
This mirrors how `symfony/webpack-encore` declares and tests its supported Node versions. Ran the suite locally on Node 22.18.0 (the floor of the range) and it passes.
Commits
-------
a80e43e [CI] Test the suite against Node.js 22, 24 and 263 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments