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:
parent
999b9b54a2
commit
73135dd4b5
3 changed files with 23 additions and 12 deletions
22
.github/workflows/ci.yml
vendored
Normal file
22
.github/workflows/ci.yml
vendored
Normal 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
|
||||||
11
.travis.yml
11
.travis.yml
|
|
@ -1,11 +0,0 @@
|
||||||
git:
|
|
||||||
autocrlf: input
|
|
||||||
language: node_js
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
- windows
|
|
||||||
node_js:
|
|
||||||
- node
|
|
||||||
- lts/*
|
|
||||||
- 18
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@websnacksjs/websnacks "NPM release")
|
[](https://www.npmjs.com/package/@websnacksjs/websnacks "NPM release")
|
||||||
[](https://www.mozilla.org/en-US/MPL/2.0/FAQ/ "License info")
|
[](https://www.mozilla.org/en-US/MPL/2.0/FAQ/ "License info")
|
||||||
[](https://travis-ci.com/websnacksjs/websnacks "Build status for mainline branch")
|
[](https://github.com/websnacksjs/websnacks/actions?query=branch%3Amainline "Build status for mainline branch")
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue