forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4970eac
commit 7126d82
Showing
2 changed files
with
45 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.