Skip to content

CI: Add initial config #2

CI: Add initial config

CI: Add initial config #2

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version:
- 24.x
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: "${{ matrix.node-version }}"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test --if-present
- name: Check code style
run: npm run lint