Skip to content

Secure CI workflows against supply-chain attacks #378

Secure CI workflows against supply-chain attacks

Secure CI workflows against supply-chain attacks #378

Workflow file for this run

name: Test and lint
on:
push:
branches: [ master, stable ]
pull_request:
branches: [ master, stable ]
permissions: {}
jobs:
build:
name: node.js
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
# Support LTS versions based on https://nodejs.org/en/about/releases/
node-version: ['22', '24', '26']
fail-fast: false
steps:
- uses: actions/checkout@v6.0.2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6.3.0
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run jaribu tests
run: npm test
- name: Run mocha tests
run: npm run test:mocha -- --exit
- name: Lint source code
run: npm run lint:quiet
- name: Lint mocha specs
run: npm run lint:specs:quiet
- name: Run webpack
run: npm run build:release