From cb1329d512f91c5327147b88e20099dd4961ecc6 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 31 May 2025 12:58:24 -0500 Subject: [PATCH] fix: add pre-checkout workspace cleanup for coverage permission issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/pr.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e014791..bc349cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1f89f12..adcec1f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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: