Skip to content

Commit

Permalink
chore: coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaschain committed Dec 3, 2023
1 parent 64db0c6 commit 38b5cfb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check test coverage

on:
push:
branches: ["*"]

jobs:
check-coverage:
name: Check Test Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/lucaschain/beholder
threshold-total: 80

git-token: ${{ github.ref_name == 'main' && secrets.GH_TOKEN || '' }}
git-branch: badges
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![main branch status checks](https://github.com/lucaschain/beholder/actions/workflows/build_and_test.yml/badge.svg)
![coverage](https://raw.githubusercontent.com/org/project/badges/.badges/main/coverage.svg)

# Beholder

Expand Down

0 comments on commit 38b5cfb

Please sign in to comment.