Skip to content

Commit

Permalink
Merge pull request #1 from abdullahbayram/ci/post-merge-coverage-fall…
Browse files Browse the repository at this point in the history
…back

ci: ensure coverage-summary.json is generated if missing in ci-workflow
  • Loading branch information
abdullahbayram authored Dec 24, 2024
2 parents dede68c + 254de9e commit 7df3ca2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
- name: Install dependencies
run: npm install

- name: Check and Generate Coverage
run: |
if [ ! -f ./coverage/coverage-summary.json ]; then
echo "Coverage summary not found. Running tests to generate it..."
npm run test:coverage
else
echo "Coverage summary found. Proceeding..."
fi
- name: Generate Coverage Assets
run: npm run generate-coverage-assets

Expand Down

0 comments on commit 7df3ca2

Please sign in to comment.