-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (35 loc) · 961 Bytes
/
gh-pages.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
39
40
41
42
43
name: GH Pages
on:
push:
branches:
- 'master'
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Cache node_modules
id: cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Generate coverage report
run: npm run report-lcov
- name: Upload to codecov
uses: codecov/codecov-action@v1
- name: Publish test coverage report
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: coverage/lcov-report