We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab5547 commit 05600cbCopy full SHA for 05600cb
‎.github/workflows/ci.yml
@@ -32,7 +32,9 @@ jobs:
32
set -euo pipefail
33
go test -json -race -covermode=atomic -coverprofile=coverage.out ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
34
echo "COVERAGE=$(cat /tmp/gotest.log | sed -nr "s/.*coverage:.([0-9.]+).*/\1/p" | uniq)" >> $GITHUB_ENV
35
- - name: Update coverage
+ echo "Coverage is: ${{ env.COVERAGE }}%"
36
+
37
+ - name: Update coverage badge
38
uses: cybercinch/dynamic-badges-action@master
39
with:
40
auth: ${{ secrets.BADGE_API_TOKEN }}
@@ -42,6 +44,7 @@ jobs:
42
44
minColorRange: 50
43
45
maxColorRange: 90
46
valColorRange: ${{ env.COVERAGE }}
47
+ if: github.event_name != 'pull_request'
48
build:
49
runs-on: ${{ matrix.os }}
50
needs:
0 commit comments