mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
Add an e2e GHA
For now this only uses the default deployment. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: End to End Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
e2e:
|
||||||
|
name: E2E
|
||||||
|
timeout-minutes: 30
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Reclaim free space
|
||||||
|
run: |
|
||||||
|
sudo swapoff -a
|
||||||
|
sudo rm -f /swapfile
|
||||||
|
df -h
|
||||||
|
free -h
|
||||||
|
|
||||||
|
- name: Run E2E deployment and tests
|
||||||
|
run: |
|
||||||
|
make e2e
|
||||||
|
|
||||||
|
- name: Post mortem
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
df -h
|
||||||
|
free -h
|
||||||
|
make post-mortem
|
||||||
@@ -13,6 +13,8 @@ export DEPLOY_ARGS
|
|||||||
|
|
||||||
deploy: clusters preload-images
|
deploy: clusters preload-images
|
||||||
|
|
||||||
|
e2e: E2E_ARGS=cluster1 cluster2
|
||||||
|
|
||||||
preload-images:
|
preload-images:
|
||||||
source $(SCRIPTS_DIR)/lib/debug_functions; \
|
source $(SCRIPTS_DIR)/lib/debug_functions; \
|
||||||
source $(SCRIPTS_DIR)/lib/deploy_funcs; \
|
source $(SCRIPTS_DIR)/lib/deploy_funcs; \
|
||||||
|
|||||||
Reference in New Issue
Block a user