chore: replace travis w/ github actions for CI (#20)

* chore: replace travis w/ github actions for CI

* chore: replace travis w/ github actions for CI

* remove node 24

* Update readme with checks badge
This commit is contained in:
M. George Hansen 2024-07-15 08:10:57 -07:00
parent 23e601fab4
commit d67e4c81ad
3 changed files with 23 additions and 12 deletions

22
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: CI
on:
push:
branches: [mainline]
pull_request:
branches: [mainline]
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [18, 20, 22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: npm test