mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
devops: attempt to free space before running docker tests (#11084)
Docker runs fail with "No space left on device" error. This patch follows advice given here: https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
This commit is contained in:
parent
bc78faba70
commit
db227e1059
12
.github/workflows/tests_docker.yml
vendored
12
.github/workflows/tests_docker.yml
vendored
@ -51,6 +51,18 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: ./utils/docker/build.sh --${{ matrix.arch }} ${{ matrix.tag }} playwright:localbuild
|
||||
- name: Freeup Space
|
||||
run: |
|
||||
pwd
|
||||
df -h
|
||||
# Based on the official advice:
|
||||
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf "/usr/local/share/boost"
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
df -h
|
||||
|
||||
- name: Launch container
|
||||
run: |
|
||||
docker run \
|
||||
|
Loading…
Reference in New Issue
Block a user