Skip to content

Commit

Permalink
Working on merging the coverage per container into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
josechirivella committed Feb 8, 2024
1 parent 8e09835 commit 417201e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,30 @@ jobs:
name: cypress-videos
path: tests/e2e/videos

- name: Archive code coverage
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.containers }}
path: ./coverage

steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
- name: Run Coverage
run: npx nyc report --reporter html --reporter text --reporter json-summary --report-dir combined-coverage
run: |
mkdir coverage
npx nyc merge coverage-* && mv coverage.json coverage/coverage-final.json
- name: Create coverage report
run: |
npx nyc report --reporter html --reporter text --reporter json-summary > coverage.lcov
ls -l coverage
ls -l .
- name: Store Artifacts
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: combined-coverage
path: coverage

- name: Run build bundle 📦
run: npm run build-bundle

0 comments on commit 417201e

Please sign in to comment.