-
Notifications
You must be signed in to change notification settings - Fork 34
95 lines (78 loc) · 2.39 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
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/quickstart/dotnet/**'
- 'get-started/quickstart/cli/**'
pull_request:
branches: [ main ]
paths:
- 'get-started/azure-auth/dotnet/**'
- 'get-started/azure-auth/cli/**'
- 'get-started/quickstart/dotnet/**'
- 'get-started/quickstart/cli/**'
jobs:
build-azure-dotnet:
runs-on: ubuntu-latest
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
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-quickstart-dotnet:
runs-on: ubuntu-latest
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
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/