From 88cba4a67ab41b58d4313c574349d0d10ac7c076 Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:18:40 +0900 Subject: [PATCH] Update k8s-calico.yml --- .github/workflows/k8s-calico.yml | 34 ++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/k8s-calico.yml b/.github/workflows/k8s-calico.yml index 97097520b..0e394524d 100644 --- a/.github/workflows/k8s-calico.yml +++ b/.github/workflows/k8s-calico.yml @@ -16,17 +16,35 @@ jobs: if: github.repository == 'loxilb-io/loxilb' && github.event.inputs.tagName == '' steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 with: submodules: recursive - - run: | + + - name: Run the test + run: | cd cicd/k8s-calico ./config.sh ./validation.sh - ./rmconfig.sh - cd - - cd cicd/k8s-calico-ubuntu22 - ./config.sh - ./validation.sh - ./rmconfig.sh cd - + + - name: Clean test-bed + if: success() || failure() + run: | + cd cicd/k8s-calico || true + ./rmconfig.sh + cd - + + - name: Run the U22 test + run: | + cd cicd/k8s-calico-ubuntu22 + ./config.sh + ./validation.sh + cd - + + - name: Clean U22 test-bed + if: success() || failure() + run: | + cd cicd/k8s-calico-ubuntu22 || true + ./rmconfig.sh + cd -