-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.14 KB
/
test.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
44
45
46
47
name: test
on:
push:
branches: [ master, next ]
pull_request:
branches: [ master, next ]
jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache .pnpm-store
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
- name: Install Dependencies
run: pnpm install
- name: Run Test
run: pnpm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage/coverage-final.json
flags: unittests,${{ matrix.os }}
token: ${{ secrets.CODECOV_TOKEN }}
name: fly-helper
fail_ci_if_error: true
verbose: true