-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (40 loc) · 876 Bytes
/
test.yaml
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
name: ci
on:
push:
branches:
- master
- dev
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
- 'LICENSE'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Cache NPM
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache NPM
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: NPM Install
run: npm install
- name: Unit Test
run: npm run test
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}