Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi committed Nov 11, 2024
1 parent 3d447eb commit 671790f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ jobs:
const testStatus = hasFailed ? 'failure' : 'success';
const color = testStatus === 'success' ? '✅' : '❌';
// Get coverage
// Get coverage from the server package test output
let coverage = 'N/A';
try {
const coverageMatch = testOutput.match(/coverage: (\d+\.\d+)% of statements/);
const coverageMatch = testOutput.match(/github\.com\/KonferCA\/NoKap\/internal\/server\s+(\d+\.\d+)%/);
coverage = coverageMatch ? coverageMatch[1] + '%' : 'N/A';
} catch (error) {
console.log('Failed to get coverage:', error);
Expand Down

0 comments on commit 671790f

Please sign in to comment.