Add GitHub workflow.

This commit is contained in:
Oleksii Trekhleb 2020-12-15 07:54:58 +01:00
parent 1b0e27ab86
commit 4094242515

37
.github/workflows/node.js.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: CI
on:
push:
branches: [ source ]
pull_request:
branches: [ source ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run linting
run: npm run lint
- name: Run tests
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1