-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 948 Bytes
/
ci.yml
File metadata and controls
34 lines (34 loc) · 948 Bytes
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: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Remove local package source
shell: pwsh
run: ./.github/Remove-PackageSource.ps1 -ConfigFile nuget.config -Source local
- name: Build Source
working-directory: src
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
run: dotnet build --configuration Release
- name: Build Example
working-directory: example
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
run: dotnet build --configuration Release
- name: Test
working-directory: src
run: dotnet test
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- name: Run Example
working-directory: example\SampleHost
run: dotnet run --configuration Release
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1