Skip to content

Commit

Permalink
ci: remove coverage badge
Browse files Browse the repository at this point in the history
Because of action error
  • Loading branch information
beholdr committed Jul 14, 2024
1 parent e310e98 commit 4ca18fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
build:
runs-on: ubuntu-latest

outputs:
coverage: ${{ steps.coverage.outputs.value }}
# outputs:
# coverage: ${{ steps.coverage.outputs.value }}

steps:
- name: Checkout
Expand All @@ -23,36 +23,37 @@ jobs:
- name: Install
run: npm ci

- name: Test and Coverage
run: npm run test:coverage
- name: Test
run: npm run test
# run: npm run test:coverage

- name: Parse coverage
uses: sergeysova/jq-action@v2
id: coverage
with:
cmd: 'jq .total.statements.pct coverage/coverage-summary.json'
# - name: Parse coverage
# uses: sergeysova/jq-action@v2
# id: coverage
# with:
# cmd: 'jq .total.statements.pct coverage/coverage-summary.json'

- name: Upload demo artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs

badge:
runs-on: ubuntu-latest
needs: build
# badge:
# runs-on: ubuntu-latest
# needs: build

steps:
- name: Create badge
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 7f2a04de5e494f9a3820832520ee2562
filename: badge.json
label: Code Coverage
message: ${{ needs.build.outputs.coverage }}%
valColorRange: ${{ needs.build.outputs.coverage }}
maxColorRange: 100
minColorRange: 0
# steps:
# - name: Create badge
# uses: schneegans/dynamic-badges-action@v1.6.0
# with:
# auth: ${{ secrets.GIST_SECRET }}
# gistID: 7f2a04de5e494f9a3820832520ee2562
# filename: badge.json
# label: Code Coverage
# message: ${{ needs.build.outputs.coverage }}%
# valColorRange: ${{ needs.build.outputs.coverage }}
# maxColorRange: 100
# minColorRange: 0

deploy:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<a href="https://www.npmjs.com/package/maska"><img src="https://img.shields.io/npm/v/maska"></a>
<a href="https://bundlephobia.com/package/maska"><img src="https://img.shields.io/bundlephobia/minzip/maska"></a>
<a href="https://github.com/beholdr/maska/actions/workflows/build.yml"><img src="https://github.com/beholdr/maska/actions/workflows/build.yml/badge.svg"></a>
<a href="https://github.com/beholdr/maska"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/beholdr/7f2a04de5e494f9a3820832520ee2562/raw/badge.json"></a>
</p>

<h3 align="center">
Expand Down

0 comments on commit 4ca18fb

Please sign in to comment.