Skip to content

Commit 88adb74

Browse files
committed
e2e: free up disk space before running tests
1 parent 3caed23 commit 88adb74

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ jobs:
4242
restore-keys: |
4343
${{ runner.os }}-go-
4444
45+
# The default disk size of these runners is ~14GB, this is not enough to run the e2e tests.
46+
# Cleanup the disk, see upstream discussion https://github.com/actions/runner-images/issues/2840.
47+
- name: Cleanup Disk Space
48+
run: |
49+
echo "Before removing files:"
50+
df -h
51+
sudo rm -rf /usr/share/dotnet
52+
sudo rm -rf /opt/ghc
53+
sudo rm -rf "/usr/local/share/boost"
54+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
55+
echo "After removing files:"
56+
df -h
57+
4558
- name: Run e2e tests
4659
run: devbox run -- make e2e-test E2E_LABEL='provider:${{ inputs.provider }}' E2E_SKIP='${{ inputs.skip }}' E2E_FOCUS='${{ inputs.focus }}'
4760
env:

0 commit comments

Comments
 (0)