Skip to content

Commit 163d7fd

Browse files
authored
Run build and lint steps in CI on .nvmrc Node version (#230)
1 parent 65c5032 commit 163d7fd

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ jobs:
2222
runs-on: ubuntu-latest
2323
needs:
2424
- prepare
25-
strategy:
26-
matrix:
27-
node-version: [16.x, 18.x, 20.x]
2825
steps:
2926
- uses: actions/checkout@v3
30-
- name: Use Node.js ${{ matrix.node-version }}
27+
- name: Use Node.js
3128
uses: actions/setup-node@v3
3229
with:
33-
node-version: ${{ matrix.node-version }}
30+
node-version-file: '.nvmrc'
3431
cache: 'yarn'
3532
- run: yarn --immutable --immutable-cache
3633
- run: yarn build:source
@@ -47,15 +44,12 @@ jobs:
4744
runs-on: ubuntu-latest
4845
needs:
4946
- prepare
50-
strategy:
51-
matrix:
52-
node-version: [16.x, 18.x, 20.x]
5347
steps:
5448
- uses: actions/checkout@v3
55-
- name: Use Node.js ${{ matrix.node-version }}
49+
- name: Use Node.js
5650
uses: actions/setup-node@v3
5751
with:
58-
node-version: ${{ matrix.node-version }}
52+
node-version-file: '.nvmrc'
5953
cache: 'yarn'
6054
- run: yarn --immutable --immutable-cache
6155
- run: yarn build:types
@@ -72,15 +66,12 @@ jobs:
7266
runs-on: ubuntu-latest
7367
needs:
7468
- prepare
75-
strategy:
76-
matrix:
77-
node-version: [16.x, 18.x, 20.x]
7869
steps:
7970
- uses: actions/checkout@v3
80-
- name: Use Node.js ${{ matrix.node-version }}
71+
- name: Use Node.js
8172
uses: actions/setup-node@v3
8273
with:
83-
node-version: ${{ matrix.node-version }}
74+
node-version-file: '.nvmrc'
8475
cache: 'yarn'
8576
- run: yarn --immutable --immutable-cache
8677
- run: yarn lint

0 commit comments

Comments
 (0)