setup: GitHub actions for tests and remove Travis CI

This commit is contained in:
liyasthomas
2021-06-10 11:02:24 +05:30
parent da94a94d71
commit 27e061c355
3 changed files with 28 additions and 36 deletions

26
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test