fix: add pre-checkout workspace cleanup for coverage permission issues

Add explicit workspace cleanup step before checkout to handle coverage
directories with restrictive permissions that prevent GitHub Actions cleanup.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jonathan
2025-05-31 12:58:24 -05:00
parent 6cfbc0721c
commit cb1329d512
2 changed files with 12 additions and 0 deletions

View File

@@ -97,6 +97,12 @@ jobs:
needs: [test-unit]
steps:
- name: Clean workspace
run: |
# Fix any existing coverage file permissions before checkout
sudo find . -name "coverage" -type d -exec chmod -R 755 {} \; 2>/dev/null || true
sudo rm -rf coverage 2>/dev/null || true
- name: Checkout code
uses: actions/checkout@v4
with:

View File

@@ -70,6 +70,12 @@ jobs:
needs: [test-unit]
steps:
- name: Clean workspace
run: |
# Fix any existing coverage file permissions before checkout
sudo find . -name "coverage" -type d -exec chmod -R 755 {} \; 2>/dev/null || true
sudo rm -rf coverage 2>/dev/null || true
- name: Checkout code
uses: actions/checkout@v4
with: