Skip to content

Commit c208ac7

Browse files
committed
Add build-test workflow
1 parent a1aeed6 commit c208ac7

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: .NET - Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-2022
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup MSBuild
17+
uses: microsoft/setup-msbuild@v1
18+
- name: Setup NuGet
19+
uses: NuGet/setup-nuget@v1.0.5
20+
- name: Restore dependencies
21+
run: nuget restore SourceUtils.sln
22+
- name: Build
23+
run: msbuild SourceUtils.sln /t:Build /p:Configuration=Debug /p:Platform="Any CPU" /verbosity:minimal
24+
- name: Test
25+
uses: microsoft/vstest-action@v1.0.0
26+
with:
27+
testAssembly: SourceUtils.Test.dll
28+
searchFolder: .\SourceUtils.Test\bin\Debug\
29+
runInParallel: true

0 commit comments

Comments
 (0)