Skip to content

Commit

Permalink
Merge pull request #5 from lisb/feature/add-ci-workflow
Browse files Browse the repository at this point in the history
chore(workflow): add CI workflow
  • Loading branch information
krdlab authored Nov 22, 2024
2 parents e8eca4c + e8a132b commit 051a2dd
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build and test

on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read

defaults:
run:
shell: bash

jobs:
test:
strategy:
matrix:
node:
- 18.x
- 20.x
- 22.x
os:
- ubuntu-latest
- windows-latest
- macos-latest

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Run tests
run: |
npm install
npm test

0 comments on commit 051a2dd

Please sign in to comment.