Skip to content

Commit 269788d

Browse files
committed
Add CI
1 parent 98b7ce9 commit 269788d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main_build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: main_build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
env:
8+
SOLUTION_PATH: source/Diol
9+
TEST_PROJECT_PATH: tests/unit/Diol.Tests.Units/bin/Release/net48/Diol.Tests.Units.dll
10+
11+
jobs:
12+
build:
13+
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup MSBuild
20+
uses: microsoft/setup-msbuild@v1
21+
22+
- name: Restore NuGet packages
23+
run: msbuild /t:restore ${{ env.SOLUTION_PATH }}
24+
25+
- name: Build
26+
run: msbuild /p:Configuration=Release /p:Platform="Any CPU" ${{ env.SOLUTION_PATH }}/Diol.sln
27+
28+
- name: Run Unit Tests
29+
run: |
30+
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" ${{ env.TEST_PROJECT_PATH }}

0 commit comments

Comments
 (0)