Skip to content

Commit

Permalink
ci(workflows): update coverage badge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Mar 8, 2024
1 parent 114fafc commit 23211e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# ];
# SUMMARY = SUMMARY.split('\n')[5]; // 'Lines : 31.93% ( 38/119 )'
# SUMMARY = SUMMARY.split(':')[1].split('(')[0].trim(); // '31.93%'
SUMMARY="$(npm run test-ci | tail -2 | head -1)"
SUMMARY="$(npm run test | tail -2 | head -1)"
TOKENS=($SUMMARY)
# process.env.COVERAGE = '31.93%';
echo "COVERAGE=$(echo ${TOKENS[2]})" >> $GITHUB_ENV
Expand All @@ -71,4 +71,5 @@ jobs:
label: Test Coverage
message: ${{ env.COVERAGE }}
color: green
namedLogo: jest
namedLogo: vitest
style: for-the-badge
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
_A `Vue` component library, styling system, and image asset repository for PDAP-branded client apps._

[![Current npm release](https://img.shields.io/npm/v/pdap-design-system?style=for-the-badge)](https://www.npmjs.com/package/pdap-design-system)
![Build status](./badges/build.svg)
![Test coverage](./badges/coverage.svg)
<!-- ![Build status](./badges/build.svg)
![Test coverage](./badges/coverage.svg) -->
(![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/joshuagraber/f3a173e87a763056b73438f503680993/raw/pdap-design-system__heads_refactor.json)
)
![License](https://img.shields.io/github/license/Police-Data-Accessibility-Project/design-system.svg?style=for-the-badge&color=green)


Expand Down

0 comments on commit 23211e4

Please sign in to comment.