-
Notifications
You must be signed in to change notification settings - Fork 99
31 lines (30 loc) · 994 Bytes
/
build.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
name: Build
on:
workflow_call
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Create Code Signing Certificate
run : |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Install dotnet-coverage
run: dotnet tool install --global dotnet-coverage
- name: Build
run: dotnet build --no-restore --configuration Debug
- name: Test
run: dotnet-coverage collect "dotnet test --no-build --verbosity normal" -f xml -o "coverage.xml"
- name: Ouput Test Coverage Artifact
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.xml