Skip to content

ci: run on node lts/iron, lts/jod, lts latest #28

ci: run on node lts/iron, lts/jod, lts latest

ci: run on node lts/iron, lts/jod, lts latest #28

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint-format:
name: Check formatting and lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/iron, lts/jod, lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npx prettier --check .
- run: npx -y [email protected] --deny-warnings
- run: npx eslint
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/iron, lts/jod, lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install-ci-test