-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.19 KB
/
pull-request.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
name: Pull Request
on:
pull_request:
branches: [master, release]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
environment: PR
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
env:
CI: 1
HUSKY: 0 # disables husky hooks
NPM_TOKEN: ${{ secrets.NPM_RO_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install deps (with cache)
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --no-progress --ignore-scripts
- name: Verify
run: make verify
env:
SKIP_INSTALL: 1 # install with cache was done already
- name: Monitor coverage
uses: slavcodev/coverage-monitor-action@1.2.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
clover_file: 'coverage/clover.xml'
threshold_alert: 80
threshold_warning: 90