websnacks/.github/workflows/ci.yml
M. George Hansen 73135dd4b5
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
2024-07-15 08:10:57 -07:00

22 lines
545 B
YAML

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