-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1 KB
/
pullrequest.yml
File metadata and controls
40 lines (35 loc) · 1 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
name: Build and Test PR
on:
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Authenticate npm with the GPR
uses: jgierer12/npm-auth-gpr@v1.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run Tests
run: yarn test
- name: Jest Code Coverage Report
uses: ChristiaanScheermeijer/jest-reporter-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test-command: "yarn test:coverage"
- name: Coveralls Code Coverage Report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}