Skip to content

Commit af8c2f2

Browse files
Add step to cleanup space
Signed-off-by: Sameer <[email protected]>
1 parent 5bb8ed8 commit af8c2f2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test-gh.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ jobs:
1414
fail-fast: false
1515
max-parallel: 2
1616
matrix:
17-
k8s-version: [v1.27.0, latest]
17+
k8s-version: [v1.28.0, latest]
1818
steps:
19+
- name: Free Disk Space (Ubuntu)
20+
uses: jlumbroso/[email protected]
21+
with:
22+
# this might remove tools that are actually needed,
23+
# if set to "true" but frees about 6 GB
24+
tool-cache: true
1925
- name: install kind
2026
uses: helm/kind-action@v1
2127
with:
@@ -37,7 +43,7 @@ jobs:
3743
git checkout ${k8s_version}
3844
git clone https://github.com/kubernetes-sigs/kind.git && cd kind
3945
kind build node-image --type=source $(pwd)/.. --image kindest/node:${k8s_version}
40-
cd ../../../
46+
cd $(pwd)/../../../
4147
rm -rf tmp && echo "Cleanup completed: Temporary directory 'tmp' has been removed." || echo "Cleanup failed: Could not remove 'tmp' directory."
4248
- name: Create Kind Cluster(k8s version ${{ env.k8s_version }})
4349
run: |

0 commit comments

Comments
 (0)