-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable GitHub Actions for the e2e test
Signed-off-by: Jun Duan <[email protected]>
- Loading branch information
Showing
3 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: E2E test | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
test-controlplane-lifecycle-management: | ||
name: Test ControlPlane lifecycle management | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '' | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: v1.19 | ||
cache: true | ||
|
||
- name: Install kubectl | ||
uses: azure/setup-kubectl@v3 | ||
id: install | ||
|
||
- name: Run test | ||
run: | | ||
test/e2e/run.sh | ||
- name: Show kubeconfig contexts | ||
if: always() | ||
run: kubectl config get-contexts | ||
|
||
- name: Show running components of KubeFlex | ||
if: always() | ||
run: kubectl --context kind-kubeflex -n kubeflex-system get all | ||
|
||
- name: Show logs of the KubeFlex controller manager | ||
if: always() | ||
run: kubectl --context kind-kubeflex -n kubeflex-system logs deploy/kubeflex-controller-manager | ||
|
||
- name: Show logs of the shared Postgres DB | ||
if: always() | ||
run: kubectl --context kind-kubeflex -n kubeflex-system logs sts/postgres-postgresql | ||
|
||
- name: Show logs of the KubeFlex operator | ||
if: always() | ||
run: kubectl --context kind-kubeflex -n kubeflex-system logs job/kubeflex-operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters