File tree Expand file tree Collapse file tree 1 file changed +3
-43
lines changed Expand file tree Collapse file tree 1 file changed +3
-43
lines changed Original file line number Diff line number Diff line change 1
1
name : pr-check
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
branches :
6
6
- master
7
7
- ' releases/*'
8
8
jobs :
9
9
az-login-test :
10
- environment : Automation test
11
10
runs-on : windows-latest
12
11
steps :
13
12
- name : Checkout from PR branch
28
27
- name : Build GitHub Action
29
28
run : npm run build
30
29
31
- - name : ' Az CLI login with subscription'
32
- uses : ./
33
- with :
34
- creds : ${{ secrets.AZURE_CREDENTIALS }}
35
-
36
- - run : |
37
- az account show --output none
38
- az vm list --output none
39
-
40
- - name : ' Az CLI login without subscription'
41
- uses : ./
42
- with :
43
- creds : ${{ secrets.AZURE_CREDENTIALS_NO_SUB }}
44
- allow-no-subscriptions : true
45
-
46
- - run : |
47
- az account show --output none
48
- # az vm list --output none
49
-
50
- - name : ' Azure PowerShell login with subscription'
51
- uses : ./
52
- with :
53
- creds : ${{ secrets.AZURE_CREDENTIALS }}
54
- enable-AzPSSession : true
55
-
56
- - uses : azure/powershell@v1
57
- with :
58
- inlineScript : " (Get-AzContext).Environment.Name"
59
- azPSVersion : " latest"
60
-
61
- # - name: 'Azure PowerShell login without subscription'
62
- # uses: ./
63
- # with:
64
- # creds: ${{secrets.AZURE_CREDENTIALS_NO_SUB}}
65
- # enable-AzPSSession: true
66
- # allow-no-subscriptions: true
67
-
68
- # - uses: azure/powershell@v1
69
- # with:
70
- # inlineScript: "Get-AzContext"
71
- # azPSVersion: "latest"
30
+ - name : Run mock test
31
+ run : npm run test
You can’t perform that action at this time.
0 commit comments