-
Notifications
You must be signed in to change notification settings - Fork 8
72 lines (56 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
72 lines (56 loc) · 1.89 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
build:
name: Build & Validate
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['8.0.x', '9.0.x', '10.0.x']
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build TypeScript/Webpack assets
run: npm run build
- name: Restore .NET dependencies
run: dotnet restore
- name: Build .NET library
run: dotnet build --no-restore --configuration Release /p:TreatWarningsAsErrors=false
- name: Build VS Templates
run: dotnet pack templates/IgniteUI.Blazor.Templates/
- name: Run .NET tests with coverage
run: >
dotnet test --no-build --configuration Release --verbosity normal
--collect:"XPlat Code Coverage"
--results-directory ./TestResults
- name: Generate coverage report
uses: danielpalme/ReportGenerator-GitHub-Action@c31aa4ed4f12f147061186cf2a029f307b5c3636
with:
reports: TestResults/**/coverage.cobertura.xml
targetdir: CoverageReport
reporttypes: HtmlInline_AzurePipelines;Cobertura;MarkdownSummaryGithub
- name: Publish coverage summary
run: cat CoverageReport/SummaryGithub.md >> "$GITHUB_STEP_SUMMARY"
- name: Upload coverage report
uses: actions/upload-artifact@v7
with:
name: coverage-report-${{ matrix.dotnet-version }}
path: CoverageReport
retention-days: 14