Skip to content

Commit

Permalink
chore: update CI workflow to support multiple Node.js versions and cu…
Browse files Browse the repository at this point in the history
…stomize dependency installation
  • Loading branch information
AxiosLeo committed Jan 3, 2025
1 parent 15e7a1e commit adcb4ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
operating-system: [macos-latest, ubuntu-latest]
node-version: [20]
node-version: [16, 18, 20]
name: Node.js ${{ matrix.node-version }} Test on ${{ matrix.operating-system }}

steps:
Expand All @@ -24,7 +24,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Install dependencies
run: |
if [ "${{ matrix.node-version }}" = "16" ]; then
npm install [email protected] @eslint/[email protected] @eslint/[email protected]
fi
npm install
- run: npm run lint
# - uses: codecov/codecov-action@v3
# with:
Expand Down

0 comments on commit adcb4ca

Please sign in to comment.