integration tests docker cache
This commit is contained in:
parent
a5c21e1ffc
commit
bd0ea37253
1 changed files with 4 additions and 16 deletions
20
.github/workflows/test-integration.yml
vendored
20
.github/workflows/test-integration.yml
vendored
|
|
@ -32,23 +32,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: df -h
|
- run: df -h
|
||||||
|
|
||||||
- name: Disk space troubleshooting
|
- name: Cleanup Docker cache
|
||||||
run: |
|
run: |
|
||||||
echo "=== Top-level disk usage ==="
|
docker system prune -af || true
|
||||||
sudo du -h -d1 / 2>/dev/null | sort -h
|
docker builder prune -af || true
|
||||||
echo ""
|
|
||||||
echo "=== Docker disk usage ==="
|
|
||||||
docker system df
|
|
||||||
|
|
||||||
- name: Clean runner workspace
|
|
||||||
run: |
|
|
||||||
# Save current workspace path
|
|
||||||
CURRENT_WORKSPACE="${GITHUB_WORKSPACE}"
|
|
||||||
# Clean old job workspaces except current one
|
|
||||||
find ${GITHUB_WORKSPACE}/../../../_work -maxdepth 2 -type d -mtime +1 -not -path "${CURRENT_WORKSPACE}*" -exec rm -rf {} + 2>/dev/null || true
|
|
||||||
# Clean runner logs older than 1 day
|
|
||||||
find ${GITHUB_WORKSPACE}/../../../_diag -type f -mtime +1 -delete 2>/dev/null || true
|
|
||||||
|
|
||||||
- run: df -h
|
- run: df -h
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue