test
This commit is contained in:
parent
bde1e0ec82
commit
110c2349fc
|
@ -1,4 +1,4 @@
|
||||||
name: .NET 4.0 Build
|
name: Build and Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup .NET Framework
|
- name: Use .NET Framework version 4.0
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
with:
|
with:
|
||||||
dotnet-version: '4.0'
|
dotnet-version: '4.0'
|
||||||
|
@ -26,3 +26,14 @@ jobs:
|
||||||
|
|
||||||
- name: Build solution
|
- name: Build solution
|
||||||
run: msbuild.exe YourSolution.sln /t:Build /p:Configuration=Release
|
run: msbuild.exe YourSolution.sln /t:Build /p:Configuration=Release
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: vstest.console.exe YourTestProject.dll /Logger:trx
|
||||||
|
|
||||||
|
- name: Archive artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Artifacts
|
||||||
|
path: |
|
||||||
|
YourSolution/bin/Release/*
|
||||||
|
YourTestProject/TestResults/*.trx
|
||||||
|
|
Loading…
Reference in New Issue