fix(ci): exclude E2E tests from coverage job to avoid Docker dependency

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 <noreply@anthropic.com>
This commit is contained in:
ClaudeBot
2025-05-27 17:37:44 +00:00
parent a514de77b3
commit 2f62c1529c

View File

@@ -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'