Skip to content

Update ci.yml

Update ci.yml #33

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
steps:
- name: checkout
uses: actions/checkout@main
- name: use node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm test
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@main
- name: use node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm ci
- run: npm run lint