Skip to content

Commit

Permalink
add ci matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
inwaar committed Oct 28, 2024
1 parent aa670af commit ffd1161
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,48 @@
name: lint and test
name: CI

on:
push:
pull_request:

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

strategy:
matrix:
node-version: [18.x]
node: [22]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
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 }}

0 comments on commit ffd1161

Please sign in to comment.