-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.4 KB
/
pr-check.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: Pull Request Checks
on: [pull_request]
jobs:
execute-pr-checks:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: install Angular CLI
run: npm install -g @angular/cli@17
- name: install dependencies
run: npm ci
- name: run linting
run: npm run lint
- name: run unit tests
run: npm run test -- --browsers ChromeHeadless --watch=false --source-map=false --code-coverage
- name: collect code coverage report
uses: irongut/[email protected]
with:
filename: coverage/**/cobertura-coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: false
output: both
thresholds: '50 75'
- name: publish coverage report to Pull Request
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md