Skip to content

Commit

Permalink
ci: Update node matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
inwaar committed Oct 7, 2024
1 parent 78b206b commit 9f0868e
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ on:
pull_request:

jobs:
ci:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint

tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12, 14, 16, 18, 20, 22]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Linters
run: npm run lint
- name: Tests
run: npm test
- run: npm ci
- run: npm test

0 comments on commit 9f0868e

Please sign in to comment.