build(ci): convert travis-ci to github actions

This commit is contained in:
stvn
2021-06-02 00:04:48 -07:00
parent 13681c1360
commit 29c21c1b1d
3 changed files with 40 additions and 15 deletions

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

@@ -0,0 +1,26 @@
---
name: validate
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g npm@6
- run: make requirements.ci
- run: make test
- name: upload coverage
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true