-
-
Notifications
You must be signed in to change notification settings - Fork 94
40 lines (34 loc) · 1.04 KB
/
ci-code.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
name: CI - Code
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/ci-code.yml
- src/**
jobs:
verify_codebase:
name: Verify Codebase
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout Code
uses: actions/checkout@v2
# Install .NET
- name: Install .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x' # SDK Version to use; x will use the latest version of the 3.1 channel
# Build Solution
- name: Build Solution
run: dotnet build src/Promitor.sln --configuration release
# Run Automated Tests
- name: Run Unit Tests
run: dotnet test src/Promitor.Tests.Unit/Promitor.Tests.Unit.csproj --logger "trx;LogFileName=test-results.trx"
# Provide Unit Test Results
- name: Report Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: .NET Unit Tests
path: src/**/test-results.trx
reporter: dotnet-trx