-
Notifications
You must be signed in to change notification settings - Fork 87
106 lines (97 loc) · 3.45 KB
/
re_test-integration-azure.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
name: Azure Integration Tests
env:
BOOSTER_AZURE_SERVICE_PLAN_BASIC: 'true'
on:
workflow_call:
inputs:
azure-region:
default: 'East US 2'
required: false
type: string
azure-publisher-email:
default: noreply@booster.cloud
required: false
type: string
azure-publisher-name:
default: Booster App
required: false
type: string
secrets:
AZURE_CLIENTID:
required: true
AZURE_SECRET:
required: true
AZURE_TENANTID:
required: true
AZURE_SUBSCRIPTIONID:
required: true
AZURE_CREDENTIALS:
required: true
jobs:
azure-deploy:
name: Azure Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run integration test
uses: ./.github/actions/test-integration-run-one
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
integration-test: azure-deploy
gh_token: ${{ secrets.GITHUB_TOKEN }}
azure-region: ${{ inputs.azure-region }}
azure-publisher-email: ${{ inputs.azure-publisher-email }}
azure-publisher-name: ${{ inputs.azure-publisher-name }}
azure-clientid: ${{ secrets.AZURE_CLIENTID }}
azure-secret: ${{ secrets.AZURE_SECRET }}
azure-tenantid: ${{ secrets.AZURE_TENANTID }}
azure-subscriptionid: ${{ secrets.AZURE_SUBSCRIPTIONID }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
azure-integration-tests:
needs: [azure-deploy]
strategy:
max-parallel: 1
matrix:
integration-test: [azure-func, azure-end-to-end]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run integration test
uses: ./.github/actions/test-integration-run-one
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
integration-test: ${{ matrix.integration-test }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
azure-region: ${{ inputs.azure-region }}
azure-publisher-email: ${{ inputs.azure-publisher-email }}
azure-publisher-name: ${{ inputs.azure-publisher-name }}
azure-clientid: ${{ secrets.AZURE_CLIENTID }}
azure-secret: ${{ secrets.AZURE_SECRET }}
azure-tenantid: ${{ secrets.AZURE_TENANTID }}
azure-subscriptionid: ${{ secrets.AZURE_SUBSCRIPTIONID }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
azure-nuke:
name: Azure Nuke
needs: [azure-deploy, azure-integration-tests]
if: always() && needs.azure-deploy.result == 'success'
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run integration test
uses: ./.github/actions/test-integration-run-one
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
integration-test: azure-nuke
gh_token: ${{ secrets.GITHUB_TOKEN }}
azure-region: ${{ inputs.azure-region }}
azure-publisher-email: ${{ inputs.azure-publisher-email }}
azure-publisher-name: ${{ inputs.azure-publisher-name }}
azure-clientid: ${{ secrets.AZURE_CLIENTID }}
azure-secret: ${{ secrets.AZURE_SECRET }}
azure-tenantid: ${{ secrets.AZURE_TENANTID }}
azure-subscriptionid: ${{ secrets.AZURE_SUBSCRIPTIONID }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}