Skip to content

Commit c008105

Browse files
committed
[no-relnote] Run e2e tests as reusable workflow
Signed-off-by: Evan Lezar <[email protected]>
1 parent 1d28508 commit c008105

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/e2e.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,25 @@
1515
name: End-to-end Tests
1616

1717
on:
18-
workflow_run:
19-
workflows: [image]
20-
types:
21-
- completed
22-
branches:
23-
- "pull-request/[0-9]+"
24-
- main
25-
- release-*
18+
workflow_call:
19+
inputs: {}
20+
secrets:
21+
AWS_ACCESS_KEY_ID:
22+
required: true
23+
AWS_SECRET_ACCESS_KEY:
24+
required: true
25+
AWS_SSH_KEY:
26+
required: true
27+
E2E_SSH_USER:
28+
required: true
29+
SLACK_BOT_TOKEN:
30+
required: true
31+
SLACK_CHANNEL_ID:
32+
required: true
2633

2734
jobs:
2835
e2e-tests:
2936
runs-on: linux-amd64-cpu4
30-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
3137
steps:
3238
- name: Check out code
3339
uses: actions/checkout@v4

.github/workflows/image.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,9 @@ jobs:
122122
run: |
123123
echo "${VERSION}"
124124
make -f deployments/container/Makefile build-${{ matrix.dist }}
125+
test:
126+
name: End-to-end Tests
127+
uses: ./.github/workflows/e2e.yaml
128+
secrets: inherit
129+
needs: image
130+

0 commit comments

Comments
 (0)