Skip to content

Commit 5db4caf

Browse files
committed
added workflow for CI/CD
1 parent 1399524 commit 5db4caf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test .NET
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Add .NET support
17+
uses: actions/setup-dotnet@v2
18+
with:
19+
dotnet-version: 6.0.x
20+
- name: Add MsBuild
21+
uses: microsoft/setup-msbuild@v1.1.3
22+
- name: Load dependencies
23+
run: dotnet restore DocuSign.MyAPI\DocuSign.MyAPI.sln
24+
- name: Build project
25+
run: dotnet build DocuSign.MyAPI\DocuSign.MyAPI.sln --no-restore
26+
- name: Run tests
27+
run: dotnet test DocuSign.MyAPI\DocuSign.MyAPI.sln --no-build --verbosity normal

0 commit comments

Comments
 (0)