Skip to content

Commit 612abb1

Browse files
author
Anna Jung (VMware)
committed
Add kustomize test for e2e pre check
Signed-off-by: Anna Jung (VMware) <[email protected]>
1 parent e1363c9 commit 612abb1

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/e2e_test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: E2E Tests
22

33
on:
44
workflow_run:
5-
workflows: ["E2E Test Pre Label Check"]
6-
types:
7-
- completed
5+
workflows: [E2E Test Pre Label Check]
6+
types: [completed]
87

98
jobs:
109
e2e:
1110
if: >
11+
github.event.label.name == 'ok-to-test' &&
1212
github.event.workflow_run.event == 'pull_request' &&
1313
github.event.workflow_run.conclusion == 'success'
1414
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
name: E2E Test Pre Label Check
22

33
on:
4-
pull_request:
5-
paths:
6-
- apps/**
7-
- common/**
8-
types:
9-
- labeled
4+
workflow_run:
5+
workflows: [E2E Test Require Label Check]
6+
types: [completed]
107

118
jobs:
129
ok_to_test_label_check:
1310
if: ${{ github.event.label.name == 'ok-to-test' }}
11+
1412
runs-on: ubuntu-latest
13+
1514
steps:
16-
- run: echo "Pull request contains label ok-to-test"
15+
- name: Check out repo
16+
uses: actions/checkout@v2
17+
18+
- name: Install kustomize
19+
run: ./tests/gh-actions/install_kustomize.sh
20+
21+
- name: Unit Test
22+
run: kustomize build example

.github/workflows/e2e_test_require_label_check.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- labeled
1111
- unlabeled
1212
- synchronize
13+
- reopened
1314

1415
jobs:
1516
require_label_check:

0 commit comments

Comments
 (0)