File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed
Supermarket/V1/Controllers Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
1
workflows :
2
- version : 2.1
3
- main :
2
+ version : 2
3
+ build_and_test :
4
4
jobs :
5
- - build :
6
- filters :
7
- branches :
8
- only :
9
- - develop
10
- - master
11
- version : 2.1
5
+ - build
6
+ - test
7
+ version : 2
12
8
jobs :
13
9
build :
14
10
docker :
15
11
- image : mcr.microsoft.com/dotnet/core/sdk:2.2
16
12
steps :
17
13
- checkout
18
- - run :
19
- name : Find
20
- command : find .
21
14
- run :
22
15
name : Restore
23
16
command : dotnet restore ./Supermarket.Core/Supermarket.Core.csproj
24
- - run :
25
- name : Build
26
- command : dotnet build ./Supermarket.Core/Supermarket.Core.csproj
27
17
- run :
28
18
name : Restore
29
19
command : dotnet restore ./Supermarket/Supermarket.csproj
20
+ - run :
21
+ name : Build
22
+ command : dotnet build ./Supermarket.Core/Supermarket.Core.csproj
30
23
- run :
31
24
name : Build
32
25
command : dotnet build ./Supermarket/Supermarket.csproj
26
+ test :
27
+ docker :
28
+ - image : mcr.microsoft.com/dotnet/core/sdk:2.2
29
+ steps :
30
+ - checkout
33
31
- run :
34
32
name : Test
35
33
command : dotnet test ./Supermarket.UnitTests/Supermarket.UnitTests.csproj
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ public IActionResult Get()
26
26
return Ok ( new { message = "This is about Api Version 1.0" } ) ;
27
27
}
28
28
}
29
- }
29
+ }
You can’t perform that action at this time.
0 commit comments