-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.34 KB
/
dotnet-develop.yml
File metadata and controls
44 lines (41 loc) · 1.34 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
37
38
39
40
41
42
43
44
name: Develop CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: .\main
- name: NerdBank.GitVersioning
uses: dotnet/nbgv@v0.3.1
id: nbgv
with:
path: .\main
- name: Build
run: >
dotnet build -c Release
-p:AssemblyVersion=${{ steps.nbgv.outputs.AssemblyVersion }}
-p:AssemblyFileVersion=${{ steps.nbgv.outputs.AssemblyFileVersion }}
-p:AssemblyInformationalVersion=${{ steps.nbgv.outputs.AssemblyInformationalVersion }}
--no-restore
working-directory: .\main
- name: Test
run: dotnet test -c Release --no-build --verbosity normal .\test\ReCode.Cocoon.Proxy.Tests
working-directory: .\main
- name: ConsoleRunXUnitLegacyTests
run: |
~/.nuget/packages/xunit.runner.console/2.4.1/tools/net472/xunit.console.exe $Env:GITHUB_WORKSPACE\main\test\ReCode.Cocoon.Legacy.Tests\bin\Release\net45\ReCode.Cocoon.Legacy.Tests.dll