Skip to content

add ci matrix

add ci matrix #5

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: [22]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Linters
run: npm run lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20, 22]
node-red: [2, 3, 4]
exclude:
- node: 16
node-red: 4
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install node-red
run: npm install -g --unsafe-perm node-red@${{ matrix.node-red }}