Skip to content

Commit b36a943

Browse files
committed
chore: unify node version config
1 parent 6d7a8bb commit b36a943

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77
branches: [main, develop]
88
workflow_dispatch:
99

10+
node_versions: &node_versions
11+
- 'lts/*'
12+
1013
jobs:
1114
lint:
1215
runs-on: ubuntu-latest
1316
strategy:
1417
matrix:
15-
node-version: ['lts/*']
18+
node-version: *node_versions
1619
steps:
1720
- uses: actions/checkout@v6
1821
- name: Setup Node.js ${{ matrix.node-version }}
@@ -32,7 +35,7 @@ jobs:
3235
strategy:
3336
fail-fast: false
3437
matrix:
35-
node-version: ['lts/*']
38+
node-version: *node_versions
3639
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
3740
steps:
3841
- uses: actions/checkout@v6
@@ -56,7 +59,7 @@ jobs:
5659
runs-on: ubuntu-latest
5760
strategy:
5861
matrix:
59-
node-version: ['lts/*']
62+
node-version: *node_versions
6063
steps:
6164
- uses: actions/checkout@v6
6265
- name: Setup Node.js ${{ matrix.node-version }}

0 commit comments

Comments
 (0)