-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (73 loc) · 2.1 KB
/
e2e_manual.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
name: e2e test manual
on:
workflow_dispatch:
inputs:
test-name:
description: "Test Name"
required: true
type: choice
options:
- genpolicy
- getdents
- openssl
- policy
- regression
- servicemesh
- volumestatefulset
- workloadsecret
default: "openssl"
platform:
description: "Platform"
required: true
type: choice
options:
- AKS-CLH-SNP
- K3s-QEMU-SNP
- K3s-QEMU-TDX
skip-undeploy:
description: "Skip undeploy"
required: false
type: boolean
default: false
jobs:
determine-platform-params:
runs-on: ubuntu-22.04
outputs:
runner: ${{ steps.determine-platform-params.outputs.runner }}
self-hosted: ${{ steps.determine-platform-params.outputs.self-hosted }}
steps:
- name: Determine Platform Parameters
id: determine-platform-params
run: |
case ${{ inputs.platform }} in
"AKS-CLH-SNP")
echo "runner=ubuntu-22.04" >> "$GITHUB_OUTPUT"
echo "self-hosted=false" >> "$GITHUB_OUTPUT"
;;
"K3s-QEMU-SNP")
echo "runner=SNP" >> "$GITHUB_OUTPUT"
echo "self-hosted=true" >> "$GITHUB_OUTPUT"
;;
"K3s-QEMU-TDX")
echo "runner=TDX" >> "$GITHUB_OUTPUT"
echo "self-hosted=true" >> "$GITHUB_OUTPUT"
;;
*)
echo "Unsupported platform: {{ platform }}"
exit 1
;;
esac
test:
name: "${{ inputs.platform }}"
needs: [determine-platform-params]
uses: ./.github/workflows/e2e.yml
with:
skip-undeploy: ${{ inputs.skip-undeploy }}
test-name: ${{ inputs.test-name }}
platform: ${{ inputs.platform }}
runner: ${{ needs.determine-platform-params.outputs.runner }}
self-hosted: ${{ fromJSON(needs.determine-platform-params.outputs.self-hosted) }}
secrets: inherit
permissions:
contents: read
packages: write