Skip to content

Commit

Permalink
Add GitHub action to free disk space before executing System tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-usai committed Oct 18, 2023
1 parent 259c2e7 commit ed9c671
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dokken-system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,29 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@main
- name: Cleanup disk space
run: |
df -h /
echo "Removing tool cache"
# Ref https://github.com/orgs/community/discussions/25678
sudo rm -rf /opt/hostedtoolcache
echo "Removing docker images"
sudo docker image prune --all --force || true
echo "Removing large packages"
# Ref https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh
sudo apt-get remove -y '^aspnetcore-.*'
sudo apt-get remove -y '^dotnet-.*' --fix-missing
sudo apt-get remove -y 'php.*' --fix-missing
sudo apt-get remove -y '^mongodb-.*' --fix-missing
sudo apt-get remove -y '^mysql-.*' --fix-missing
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing
sudo apt-get remove -y google-cloud-sdk --fix-missing
sudo apt-get remove -y google-cloud-cli --fix-missing
sudo apt-get autoremove -y
sudo apt-get clean
echo "Removing large directories"
rm -rf /usr/share/dotnet/
df -h /
- name: Get changed files
id: changed-files-excluding-tests
uses: tj-actions/[email protected]
Expand Down

0 comments on commit ed9c671

Please sign in to comment.