Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

CI: only run for main branch, and also test Node 16 #33

CI: only run for main branch, and also test Node 16

CI: only run for main branch, and also test Node 16 #33

Workflow file for this run

name: Node CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: v${{ matrix.node }} @ ubuntu-latest
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test
# - run: npm run lint --if-present