Update test.yml

This commit is contained in:
Jordan Carlin 2024-07-17 00:35:13 -07:00
parent ca7f95d5d2
commit 22b3a9bfd1
No known key found for this signature in database

View File

@ -57,9 +57,12 @@ jobs:
clean-rhel: clean-rhel:
name: clean ${{ matrix.os }} name: clean ${{ matrix.os }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
shell: bash
container: container:
image: ${{ matrix.os }} image: ${{ matrix.os }}
options: --privileged --mount type=bind,source=/,target=/host --pid=host options: --privileged --mount type=bind,source=/,target=/host --pid=host --entrypoint /bin/bash
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -69,7 +72,10 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: df -h - run: df -h
- name: remove packages - name: remove packages
run: nsenter -t 1 -m -u -n -i bash /__w/cvw/cvw/.github/cli-space-cleanup.sh run: |
cd .github
ls
nsenter -t 1 -m -u -n -i bash cli-space-cleanup.sh #-c "sudo apt-get purge -y google-cloud-cli || true; sudo apt-get autoremove -y; sudo apt-get clean"
- run: df -h - run: df -h
- name: check packages - name: check packages
run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr