-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (40 loc) · 1.33 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
49
50
51
52
53
54
name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Check License Lines
uses: kt3k/[email protected]
- name: Ensure Version Bump
uses: mindbox-moscow/github-actions/ensure-bump@master
with:
abstractionsPath: 'Mindbox.I18n.Abstractions'
- name: Build
run: dotnet build Mindbox.I18n.sln --configuration Release
- name: Test
run: dotnet test Mindbox.I18n.sln --no-build --configuration Release --collect:"XPlat Code Coverage" --logger trx --results-directory coverage
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
reports: coverage/*/coverage.cobertura.xml
targetdir: coveragereport
reporttypes: 'Cobertura'
verbosity: 'verbose'
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: coveragereport/*.xml
badge: true
format: 'markdown'
output: 'both'
fail_below_min: false
thresholds: '50 80'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md