-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (49 loc) · 1.28 KB
/
pr.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
name: pull-request-checks
on:
pull_request:
branches:
- master
jobs:
build-lint-test-checks:
strategy:
matrix:
platform: [ 'ubuntu-latest' ]
node: [ '12', '10', '8' ]
name: checks/node ${{ matrix.node }}
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout master branch
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint && yarn lint:test
- name: Build
run: yarn build
- name: Run tests
run: yarn test
coverage-check:
needs: [ build-lint-test-checks ]
name: coverage
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@master
with:
node-version: '12'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Publish coverage report
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: b565f7cd498145fafc38120f55678a656651299ce9371f87cf446ac20433196c
with:
coverageCommand: yarn coverage