Skip to content

Commit

Permalink
test: improve clean disk job
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyepianzhou committed Feb 19, 2024
1 parent eb54022 commit a15982e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-integration-pulsar-io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,19 @@ jobs:
- name: clean disk
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
run: |
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
sudo swapoff -a
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt clean
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
echo "::group::Cleaning apt state"
time sudo bash -c "apt-get clean; apt-get autoclean; apt-get -y --purge autoremove"
time df -BM / /mnt
echo "::endgroup::"
docker rmi $(docker images -q) -f
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
df -h
- name: run install by skip tests
Expand Down

0 comments on commit a15982e

Please sign in to comment.