-
Notifications
You must be signed in to change notification settings - Fork 33
121 lines (100 loc) · 3.09 KB
/
get-started-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Build and test .NET Get Started sample
on:
push:
branches:
- main
- regen/clients-**
paths:
- 'get-started/azure-auth/dotnet/**'
- 'get-started/azure-auth/cli/**'
- 'get-started/dotnet-dependency-injection/**'
- 'get-started/quickstart/dotnet/**'
- 'get-started/quickstart/cli/**'
pull_request:
branches: [ main ]
paths:
- 'get-started/azure-auth/dotnet/**'
- 'get-started/azure-auth/cli/**'
- 'get-started/dotnet-dependency-injection/**'
- 'get-started/quickstart/dotnet/**'
- 'get-started/quickstart/cli/**'
jobs:
build-azure-dotnet:
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore dependencies .NET Azure auth
run: dotnet restore
working-directory: get-started/azure-auth/dotnet/src/
- name: Build .NET Azure auth
run: dotnet build --no-restore
working-directory: get-started/azure-auth/dotnet/src/
build-azure-cli:
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore dependencies CLI Azure auth
run: dotnet restore
working-directory: get-started/azure-auth/cli/src/
- name: Build CLI Azure auth
run: dotnet build --no-restore
working-directory: get-started/azure-auth/cli/src/
build-dotnet-dependency-injection:
defaults:
run:
working-directory: get-started/dotnet-dependency-injection/
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore dependencies dotnet-dependency-injection
run: dotnet restore ./dotnet-dependency-injection.sln
- name: Build dotnet-dependency-injection
run: dotnet build ./dotnet-dependency-injection.sln --no-restore
build-quickstart-dotnet:
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore dependencies .NET quickstart
run: dotnet restore
working-directory: get-started/quickstart/dotnet/
- name: Build .NET quickstart
run: dotnet build --no-restore
working-directory: get-started/quickstart/dotnet/
- name: Test .NET quickstart
run: dotnet test
working-directory: get-started/quickstart/dotnet/
build-quickstart-cli:
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore dependencies CLI quickstart
run: dotnet restore
working-directory: get-started/quickstart/cli/src/
- name: Build CLI quickstart
run: dotnet build --no-restore
working-directory: get-started/quickstart/cli/src/