Skip to content

Commit 8a8085d

Browse files
authored
ci: test node26 (#1555)
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent dca8823 commit 8a8085d

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ jobs:
136136
node-version:
137137
# action based on https://github.com/actions/node-versions/releases
138138
# see also: https://nodejs.org/en/about/previous-releases
139-
- "25" # Current
139+
- "26" # Current
140140
- "24" # active LTS
141141
- "22"
142142
- "20"
143143
- "20.18.0" # lowest supported
144-
include:
145-
- node-version: "25"
146-
experimental: true
144+
# include:
145+
# - node-version: "27"
146+
# experimental: true
147147
continue-on-error: ${{ matrix.experimental == true }}
148148
steps:
149149
- name: Checkout
@@ -155,11 +155,26 @@ jobs:
155155
with:
156156
node-version: ${{ matrix.node-version }}
157157
package-manager-cache: false
158-
- name: enable yarn
159-
if: "matrix.node-version != '14.0.0'" # node14 has broken corepack
160-
run: |-
158+
- name: Setup Yarn
159+
shell: bash
160+
run: |
161+
set -eux
162+
npm uninstall -g yarn
161163
corepack enable yarn
164+
case "$NODE_VERSION" in
165+
'14' | '16')
166+
corepack prepare --activate yarn@3.8.7
167+
;;
168+
'18')
169+
corepack prepare --activate yarn@4.0.0
170+
;;
171+
*)
172+
corepack install --global yarn@stable
173+
;;
174+
esac
162175
yarn --version
176+
env:
177+
NODE_VERSION: ${{ matrix.node-version }}
163178
working-directory: .. # prevent evaluation of package.json
164179
- name: install project
165180
shell: bash

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@
9999
"typescript": "5.9.3",
100100
"webpack": "^5"
101101
},
102+
"overrides": {
103+
"yargs": ">=17.7.2 && <19"
104+
},
102105
"types": "./dist/plugin.d.ts",
103106
"main": "./dist/plugin.js",
104107
"exports": "./dist/plugin.js",

0 commit comments

Comments
 (0)