Skip to content

Commit 65bf34e

Browse files
committed
ci: raise coverage gate 30->80 (actual 87%); add Dependabot (gomod+actions)
1 parent b23866f commit 65bf34e

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
3+
updates:
4+
# Go module dependencies.
5+
- package-ecosystem: "gomod"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
day: "monday"
10+
time: "06:00"
11+
timezone: "Etc/UTC"
12+
open-pull-requests-limit: 10
13+
commit-message:
14+
prefix: "build"
15+
include: "scope"
16+
groups:
17+
gomod-minor-patch:
18+
applies-to: version-updates
19+
update-types:
20+
- "minor"
21+
- "patch"
22+
23+
# GitHub Actions used by the workflows.
24+
- package-ecosystem: "github-actions"
25+
directory: "/"
26+
schedule:
27+
interval: "weekly"
28+
day: "monday"
29+
time: "06:00"
30+
timezone: "Etc/UTC"
31+
open-pull-requests-limit: 10
32+
commit-message:
33+
prefix: "ci"
34+
include: "scope"
35+
groups:
36+
actions-minor-patch:
37+
applies-to: version-updates
38+
update-types:
39+
- "minor"
40+
- "patch"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Coverage threshold
106106
run: |
107107
COVERAGE=$(go tool cover -func=coverage.out | tail -1 | grep -oE '[0-9]+\.[0-9]+' || echo "0")
108-
THRESHOLD=30
108+
THRESHOLD=80
109109
if [ "$(echo "$COVERAGE < $THRESHOLD" | bc -l)" -eq 1 ]; then
110110
echo "::error::Coverage ${COVERAGE}% is below threshold ${THRESHOLD}%"
111111
exit 1

0 commit comments

Comments
 (0)