-
Notifications
You must be signed in to change notification settings - Fork 16
55 lines (44 loc) · 1.27 KB
/
pr.yml
File metadata and controls
55 lines (44 loc) · 1.27 KB
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
51
52
53
54
55
name: Pull Request
on:
push:
branches:
- feature/'*'
pull_request:
branches:
- develop
jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [13]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Restore Lerna node modules
uses: actions/cache@master
if: matrix.os != 'windows-latest' # Only run coverage on ubuntu
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Packages
run: yarn install --frozen-lock-file
- name: Lint
run: yarn lint
- name: Test
run: yarn coverage
- name: Coverage
if: matrix.os == 'ubuntu-latest' # Only run coverage on ubuntu
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: ./packages/api/coverage/lcov.info # optional
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)