Skip to content

Commit f75296e

Browse files
Free disk space for ui tests (#10225)
* Free disk space for ui tests Signed-off-by: Artem Savchenko <[email protected]> * Rollback space free Signed-off-by: Artem Savchenko <[email protected]> * Add free space action Signed-off-by: Artem Savchenko <[email protected]> * Remove temp Signed-off-by: Artem Savchenko <[email protected]> * Fix free space Signed-off-by: Artem Savchenko <[email protected]> * Add space check Signed-off-by: Artem Savchenko <[email protected]> * Free temp only Signed-off-by: Artem Savchenko <[email protected]> * Check root space Signed-off-by: Artem Savchenko <[email protected]> * Extened cleanup Signed-off-by: Artem Savchenko <[email protected]> * Do not remove temp Signed-off-by: Artem Savchenko <[email protected]> --------- Signed-off-by: Artem Savchenko <[email protected]>
1 parent 1cd34ea commit f75296e

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Free Space'
2+
description: 'Free up disk space by removing files and directories that are not needed for tests.'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Free space
7+
shell: bash
8+
run: |
9+
echo "Disk space before cleanup:"
10+
df -h
11+
sudo rm -rf /usr/share/dotnet
12+
sudo rm -rf /usr/local/lib/android
13+
sudo rm -rf /usr/share/az_*
14+
sudo rm -rf /opt/az
15+
sudo rm -rf /usr/lib/google-cloud-sdk
16+
echo "Disk space after cleanup:"
17+
df -h

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ jobs:
240240
with:
241241
username: hardcoreeng
242242
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
243-
243+
- name: Free space
244+
uses: ./.github/actions/free-disk-space
244245
- name: Docker Build
245246
run: node common/scripts/install-run-rush.js docker
246247
env:
@@ -371,7 +372,8 @@ jobs:
371372
with:
372373
username: hardcoreeng
373374
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
374-
375+
- name: Free space
376+
uses: ./.github/actions/free-disk-space
375377
- name: Docker Build
376378
run: node common/scripts/install-run-rush.js docker
377379
env:
@@ -467,6 +469,8 @@ jobs:
467469
with:
468470
username: hardcoreeng
469471
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
472+
- name: Free space
473+
uses: ./.github/actions/free-disk-space
470474
- name: Docker Build
471475
run: node common/scripts/install-run-rush.js docker
472476
env:
@@ -549,6 +553,8 @@ jobs:
549553
with:
550554
username: hardcoreeng
551555
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
556+
- name: Free space
557+
uses: ./.github/actions/free-disk-space
552558
- name: Docker Build
553559
run: node common/scripts/install-run-rush.js docker
554560
env:

0 commit comments

Comments
 (0)