-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (43 loc) · 1.24 KB
/
e2e.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
name: e2e tests azure
on:
workflow_dispatch:
pull_request:
push:
jobs:
test:
name: azure
runs-on: ubuntu-latest
strategy:
matrix:
include:
- variant: "azure_private"
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Login to Azure
uses: ./.github/actions/login_azure
with:
azure_credentials: ${{ secrets.UPLOSI_AZURE_E2E_CREDENTIALS }}
- name: Create resource group override
id: rg
env:
variant: ${{ matrix.variant }}
run: |
uuid=$(cat /proc/sys/kernel/random/uuid)
uuid=${uuid:0:8}
resource_group="uplosi_e2e_${variant}_${uuid}"
echo "resource_group=${resource_group}" | tee -a "$GITHUB_OUTPUT"
mkdir -p ./testdata/uplosi.conf.d
cat <<EOF > ./testdata/uplosi.conf.d/0100-azure.conf
[variant.${variant}.azure]
resourceGroup = "${resource_group}"
EOF
- name: Run e2e tests
run: |
:
- name: Delete resource group
if: always()
env:
rg: ${{ steps.rg.outputs.resource_group }}
run: |
az group delete --name "${rg}" --yes