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; \