From 2f62c1529c8bd6e5b3a3113ef4138f2962faf560 Mon Sep 17 00:00:00 2001 From: ClaudeBot Date: Tue, 27 May 2025 17:37:44 +0000 Subject: [PATCH] fix(ci): exclude E2E tests from coverage job to avoid Docker dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The coverage job was failing because it was running E2E tests that require Docker containers, but the coverage job only depends on unit tests, not the docker job. Changed the coverage generation to only run unit tests by using testPathPattern to exclude E2E tests. This is appropriate since: - E2E tests are primarily for workflow testing - Unit tests provide sufficient code coverage metrics - Docker containers are not available in the coverage job environment Resolves CI pipeline failure after codecov badge merge. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 305f34b..7f301f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: run: npm ci --prefer-offline --no-audit - name: Generate test coverage - run: npm run test:coverage + run: jest --coverage --testPathPattern='test/(unit|integration).*\.test\.js$' env: NODE_ENV: test BOT_USERNAME: '@TestBot'