Skip to content

Commit

Permalink
ci: make sure the if-condition works
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng committed Sep 26, 2024
1 parent 1877a4e commit 6d3e33b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/basic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

env:
LIBVIRT_DEFAULT_URI: "qemu:///system"
VM_DEPLOYED: false

jobs:
validation:
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
pushd ndm-vagrant-k3s
yq e -i ".cluster_size = 1" settings.yaml
./new-cluster.sh
echo "VM_DEPLOYED=true" >> "$GITHUB_ENV"
yq e -i ".longhorn_version = \"1.7.1\"" settings.yaml
./scripts/deploy_longhorn.sh
cp ../ci/scripts/deploy_ndm.sh ./deploy_ndm.sh
Expand Down Expand Up @@ -77,12 +79,15 @@ jobs:
popd
echo Running integration tests
NDM_HOME=`pwd` go test -v ./tests/...
- name: "DEBUG VM_DEPLOYED"
run : |
echo "VM_DEPLOYED: ${{ env.VM_DEPLOYED }}"
- name: "Get NDM logs"
if: steps.vm_deploy.conclusion == 'success'
if: ${{ env.VM_DEPLOYED == 'true' }}
run: |
./ci/scripts/get-debug-info.sh
- name: "Tear Down / Cleanup"
if: steps.vm_deploy.conclusion == 'success'
if: ${{ env.VM_DEPLOYED == 'true' }}
run: |
pushd ndm-vagrant-k3s
vagrant destroy -f --parallel
Expand Down

0 comments on commit 6d3e33b

Please sign in to comment.