Replace TravisCI with GHA (#51)

* Replace TravisCI with GHA

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>

* Update ci.yml

* Update ci.yml

---------

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
This commit is contained in:
Matthew Peveler
2025-05-29 08:51:04 +08:00
committed by GitHub
parent 7912494a5a
commit bacba8e8c6
3 changed files with 40 additions and 11 deletions
+39
View File
@@ -0,0 +1,39 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Upload to coveralls
run: |
npm install coveralls
npm run coveralls