-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (84 loc) · 2.53 KB
/
Action-Test.yml
File metadata and controls
98 lines (84 loc) · 2.53 KB
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
name: Action-Test
on:
workflow_dispatch:
push:
paths:
- action.yml
- .github/workflows/Action-Test.yml
- Modules/**
- Scripts/**
- Tests/**
env:
TenantID: ${{ secrets.TENANT_ID }}
AppID: ${{ secrets.APP_ID }}
Subscription: ${{ secrets.SUBSCRIPTION }}
AppSecret: ${{ secrets.APP_SECRET }}
jobs:
DefaultTest:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Connect to Azure using defaults
uses: AzActions/AzConnect@v1
# Login to AzCLI using TenantID, AppID, AppSecret and Subscription from environment variables.
SubscriptionOverrideTest:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Connect to Azure
uses: AzActions/AzConnect@v1
with:
Subscription: ${{ secrets.SUBSCRIPTION_OVERRIDE }}
# Login to AzCLI using TenantID, AppID and AppSecret from environment variables,
# while overriding subscription with a GUID that the App also has access to.
DefaultAzPowershellTest:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Connect to Azure
uses: AzActions/AzConnect@v1
with:
AzCLIEnabled: false
AzPowershellEnabled: true
# Loging with Azure PowerShell using environment variables.
DefaultAzureADPowershellTest:
runs-on: windows-latest
steps:
- name: Connect to Azure
uses: AzActions/AzConnect@v1
with:
AzCLIEnabled: false
AzPowershellEnabled: true
AzureADEnabled: true
# Loging with Azure PowerShell and AzureAD using environment variables. AAD is only supported on Windows OS.
DefaultMSGraphPowershellTest:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Connect to Azure
uses: AzActions/AzConnect@v1
with:
AzCLIEnabled: false
AzPowershellEnabled: true
MSGraphEnabled: true
# Loging with Azure PowerShell and MSGraph using environment variables.
DefaultMSGraphSoloTest:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Connect to Azure
uses: AzActions/AzConnect@v1
with:
AzCLIEnabled: false
MSGraphEnabled: true
# Loging with MSGraph using environment variables.