Skip to content

Commit 59c9b8a

Browse files
committed
chore: run delete always
1 parent 0de0cf2 commit 59c9b8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/integration-gcp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,17 @@ jobs:
105105
gcloud info
106106
107107
- name: Create Cluster
108+
id: create-cluster
108109
shell: bash
109110
env:
110111
TARGET_REG: "${{ env.TARGET_REG }}/${{ env.PROJECT_ID }}/${{ env.TARGET_REPO }}"
111112
run: |
112113
scripts/gcp-cluster-up.sh
113114
115+
# TODO: Add integration tests here that use the cluster
116+
114117
- name: Destroy Cluster
118+
if: always() && steps.create-cluster.outcome != 'skipped'
115119
shell: bash
116120
env:
117121
TARGET_REG: "${{ env.TARGET_REG }}/${{ env.PROJECT_ID }}/${{ env.TARGET_REPO }}"

0 commit comments

Comments
 (0)