-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 933 Bytes
/
ci.yaml
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
name: Continuous Integration
on:
push
env:
DOTNET_VERSION: '6.0' # The .NET SDK version to use
jobs:
ci:
name: Continuous Integration Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: |
dotnet restore ./src/ADOAgentOrchestrator.csproj
dotnet restore ./tests/ADOAgentOrchestrator.Tests.csproj
- name: Build
run: dotnet build --configuration Release --no-restore ./src/ADOAgentOrchestrator.csproj
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --logger "junit;LogFilePath=TestResults.xml"
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "tests/TestResults.xml"