Skip to content

Add CI for builds and tests (#25) #2

Add CI for builds and tests (#25)

Add CI for builds and tests (#25) #2

Workflow file for this run

# Credits to https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# for the code.
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build --if-present
- run: npm test