Skip to content

Commit

Permalink
code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
aldousalvarez committed Jun 18, 2024
1 parent 4970eac commit 7126d82
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 57 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,51 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
generate_coverage_report:
runs-on: ubuntu-22.04
needs: [check-coverage, cp-bungee-hermes]
if: needs.check-coverage.outputs.run-coverage == 'true'
steps:
- name: Check out repository
uses: actions/[email protected]

- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: ${{ env.NODEJS_VERSION }}

- name: Restore Yarn Cache
uses: actions/[email protected]
with:
path: ./.yarn/
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies and istanbul-merge
run: |
yarn install --frozen-lockfile
yarn add istanbul-merge --dev
- name: Download coverage reports
uses: actions/[email protected]
with:
path: ./code-coverage-ts/

- name: Merge and generate coverage reports
run: |
ls -R ./code-coverage-ts/**/**/
npx istanbul-merge --out coverage.json ./code-coverage-ts/coverage-reports-*/*/coverage-final.json
npx istanbul report --include coverage.json --dir cacti html
npx istanbul report --include coverage.json --dir cacti text
npx istanbul report --include coverage.json --dir cacti text-summary
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
name: code-coverage-report
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}



Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/generate-coverage-report.yaml

This file was deleted.

0 comments on commit 7126d82

Please sign in to comment.