Skip to content

feat: move node env flag detection to dedicated function #36

feat: move node env flag detection to dedicated function

feat: move node env flag detection to dedicated function #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install
run: npm ci --ignore-scripts --no-audit --no-fund
- name: Run lint
run: npm run lint
test:
name: Test using Node.js v${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci --ignore-scripts --no-audit --no-fund
- name: Run test
run: npm run test