This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 176
61 lines (50 loc) · 1.55 KB
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of .net
name: ".NET Build"
on:
pull_request:
branches: [ main ]
jobs:
build-6x:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- run: |
cd 3-Authorization-II/1-call-api/API
dotnet restore
dotnet build --no-restore
cd TodoListAPI.Tests
dotnet test --no-build --verbosity normal
- run: |
cd 3-Authorization-II/2-call-api-b2c/API
dotnet restore
dotnet build --no-restore
cd TodoListAPI.Tests
dotnet test --no-build --verbosity normal
- run: |
cd 5-AccessControl/1-call-api-roles/API
dotnet restore
dotnet build --no-restore
cd TodoListAPI.Tests
dotnet test --no-build --verbosity normal
- run: |
cd 5-AccessControl/2-call-api-groups/API
dotnet restore
dotnet build --no-restore
cd TodoListAPI.Tests
dotnet test --no-build --verbosity normal
- run: |
cd 6-AdvancedScenarios/1-call-api-obo/API
dotnet restore
dotnet build --no-restore
cd ProfileAPI.Tests
dotnet test --no-build --verbosity normal
- run: |
cd 6-AdvancedScenarios/2-call-api-mt/API
dotnet restore
dotnet build --no-restore
cd TodoListAPI.Tests
dotnet test --no-build --verbosity normal