-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
# Trigger on push and pull-request events, on any branch
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
# At 12:00 on the 10th day of every month
- cron: '00 12 10 * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dcodeIO/setup-node-nvm@v4
with:
node-version: lts/*
- name: install dependencies
run: npm ci # does a clean install, in contrast to `npm install`
- name: test docs
run: npm run-script test-docs
- name: test main (with coverage)
run: npm run-script test-with-coverage
- name: generate LCOV coverage report
run: ./node_modules/.bin/c8 report --reporter=text-lcov > ./coverage/lcov.info
- name: upload coverage report to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './coverage/lcov.info'