mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 23:36:00 +00:00
feat(docu): generate coverage badge (#162)
* generate coverage badge generate coverage badge in docs generation workflow in order to upload it with the documentation * include badge in readme, correct image name & json path * job names, json path * remove coverage branch from workflow
This commit is contained in:
parent
d9a54bf567
commit
eb4b8788bb
16
.github/workflows/deploy.docs.yml
vendored
16
.github/workflows/deploy.docs.yml
vendored
@ -19,14 +19,26 @@ jobs:
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
npm link
|
||||
working-directory: ./
|
||||
|
||||
- name: Build static files
|
||||
id: build
|
||||
run: npm install && npm run docs:generate
|
||||
run: npm run docs:generate
|
||||
working-directory: ./
|
||||
|
||||
- name: Generate coverage
|
||||
id: coverage
|
||||
run: npm run test:unit
|
||||
|
||||
- name: Create coverage badges
|
||||
id: coverage-badge
|
||||
uses: jaywcjlove/coverage-badges-cli@main
|
||||
with:
|
||||
style: flat
|
||||
source: coverage/coverage-summary.json
|
||||
output: docs/test-coverage.svg
|
||||
jsonPath: total.lines.pct
|
||||
|
||||
- name: Upload static files as artifact
|
||||
id: deployment
|
||||
uses: actions/upload-pages-artifact@v3.0.1
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Utopia UI [](https://www.npmjs.com/package/utopia-ui)  [](https://utopia-os.org/utopia-ui/) 
|
||||
# Utopia UI [](https://www.npmjs.com/package/utopia-ui)   [](https://utopia-os.org/utopia-ui/) 
|
||||
|
||||
**UI Framework for Real-Life-Networking-Apps**
|
||||
|
||||
|
||||
@ -13,6 +13,7 @@ export default defineConfig({
|
||||
all: true,
|
||||
include: ['src/**/*.{js,jsx,ts,tsx}'],
|
||||
exclude: [...configDefaults.exclude, 'src/**/*.cy.tsx'],
|
||||
reporter: ['html', 'json-summary'],
|
||||
thresholds: {
|
||||
lines: 1,
|
||||
functions: 59,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user