-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.05 KB
/
blank.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
48
49
50
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10'
- name: Get yarn cache directory path
id: yarn-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn modules
uses: actions/cache@v2
env:
cache-name: cache
with:
path: ${{ steps.yarn-path.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: yarn
- name: Lint, test and build
run: |
yarn lint
yarn test:coverage
yarn build
- name: Send test code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./coverage/lcov.info