Skip to content

Commit

Permalink
ci: add strategy for node version
Browse files Browse the repository at this point in the history
  • Loading branch information
iiio2 committed Sep 2, 2024
1 parent 4c1b1f5 commit cb5c66a
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ name: ci
permissions: {}

on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch: {}
merge_group: {}
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch: {}
merge_group: {}

jobs:
ci:
runs-on: ubuntu-latest
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node_version: 20
cache: npm
- name: 📦 Install dependencies
run: npm install

- name: 📦 Install dependencies
run: npm install

- name: 📝 Lint
run: npm run lint
- name: 📝 Lint
run: npm run lint

0 comments on commit cb5c66a

Please sign in to comment.