From 8d160d2b2fae174b705707bd6f8b9f324060e134 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 22 Oct 2020 18:23:52 +0200 Subject: [PATCH] Add an e2e GHA For now this only uses the default deployment. Signed-off-by: Stephen Kitt --- .github/workflows/e2e.yml | 34 ++++++++++++++++++++++++++++++++++ Makefile | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..9afc988 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -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 diff --git a/Makefile b/Makefile index 81fe004..f967451 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,8 @@ export DEPLOY_ARGS deploy: clusters preload-images +e2e: E2E_ARGS=cluster1 cluster2 + preload-images: source $(SCRIPTS_DIR)/lib/debug_functions; \ source $(SCRIPTS_DIR)/lib/deploy_funcs; \