diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95c75051..ce719d8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,6 +36,19 @@ jobs: - name: Checkout uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 + - name: Free up disk space + run: | + initial_space=$(df / | grep / | awk '{print $4}') + rm -rf /usr/share/dotnet + rm -rf /opt/ghc + rm -rf /usr/local/share/boost + rm -rf $AGENT_TOOLSDIRECTORY + rm -rf /opt/hostedtoolcache + + final_space=$(df / | grep / | awk '{print $4}') + difference=$((final_space - initial_space)) + echo "Disk space difference (in KB): $difference" + - name: Set up Helm uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 with: