-
Notifications
You must be signed in to change notification settings - Fork 21
82 lines (75 loc) · 3.56 KB
/
run-all-e2e-tests.yaml
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
# Runs Azure tests when pull request opened, repopened or synchronized
name: E2E Tests - Run all the tests on PR
on:
workflow_dispatch:
pull_request:
types: [labeled, synchronize]
permissions:
contents: read
id-token: write
jobs:
build-devkit-image:
if: |
github.event_name == 'pull_request' &&
(
(contains(fromJson('["labeled", "synchronize"]'), github.event.action)) &&
(contains(toJson(github.event.pull_request.labels.*.name), '-tests'))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/build-devkit-image.yaml
secrets: inherit
gcp-e2e-tests:
needs: [build-devkit-image]
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-gcp-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-gcp-tests')))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/gcp-e2e.yaml
secrets: inherit
aws-e2e-tests:
needs: [build-devkit-image]
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-aws-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-aws-tests')))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/aws-e2e.yaml
secrets: inherit
podman-aws-e2e-tests:
needs: [build-devkit-image]
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-aws-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-aws-tests')))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/podman-aws-e2e.yaml
secrets: inherit
vsphere-e2e-tests:
needs: [build-devkit-image]
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-vsphere-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-vsphere-tests')))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/vsphere-e2e.yaml
secrets: inherit
azure-e2e-tests:
needs: [build-devkit-image]
if: |
github.event_name == 'pull_request' &&
(
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-azure-tests')) ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-azure-tests')))
) ||
contains(fromJson('["workflow_dispatch"]'), github.event_name)
uses: ./.github/workflows/azure-e2e.yaml
secrets: inherit