Skip to content

Commit adcb4ca

Browse files
committed
chore: update CI workflow to support multiple Node.js versions and customize dependency installation
1 parent 15e7a1e commit adcb4ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
operating-system: [macos-latest, ubuntu-latest]
18-
node-version: [20]
18+
node-version: [16, 18, 20]
1919
name: Node.js ${{ matrix.node-version }} Test on ${{ matrix.operating-system }}
2020

2121
steps:
@@ -24,7 +24,12 @@ jobs:
2424
uses: actions/setup-node@v3
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- run: npm install
27+
- name: Install dependencies
28+
run: |
29+
if [ "${{ matrix.node-version }}" = "16" ]; then
30+
npm install eslint@8.56.0 @eslint/eslintrc@2.1.4 @eslint/js@8.56.0
31+
fi
32+
npm install
2833
- run: npm run lint
2934
# - uses: codecov/codecov-action@v3
3035
# with:

0 commit comments

Comments
 (0)