-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (27 loc) · 1.04 KB
/
ci.yml
File metadata and controls
36 lines (27 loc) · 1.04 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
name: Continuous Integration
on: push
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Test
run: dotnet test src/Moschen.AwsLambdaAuthenticationHandler.UnitTests/Moschen.AwsLambdaAuthenticationHandler.UnitTests.csproj --collect:"XPlat Code Coverage"
- name: Install ReportGenerator tool
if: success()
run: dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.5.8
- name: Create Coverage Report
run: |
cd src/Moschen.AwsLambdaAuthenticationHandler.UnitTests/TestResults
cd $(ls -d */|head -n 1)
reportgenerator "-reports:coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:Html
- name: Upload Report Results
uses: actions/upload-artifact@v2.2.2
with:
name: TestResults
path: src/Moschen.AwsLambdaAuthenticationHandler.UnitTests/TestResults
retention-days: 1