Skip to content

Commit dbfff9e

Browse files
committed
workflow
1 parent ab54a1b commit dbfff9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e -u
55
go test ./... -coverprofile cover.out -covermode atomic
66

77
perc=`go tool cover -func=cover.out | tail -n 1 | sed -Ee 's/^[^[:digit:]]+([[:digit:]]+(\.[[:digit:]]+)?)%$/\1/'`
8-
res=`echo "$perc >= 80.0" | bc`
8+
res=`echo "$perc >= 75.0" | bc`
99
test "$res" -eq 1 && exit 0
1010
echo "Insufficient coverage: $perc" >&2
1111
exit 1

cmd/code-buddy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515
if len(os.Args) == 1 {
1616
fmt.Printf(`=====================================================
1717
Welcome to code-buddy. Your CLI friend.
18-
Example command: 'code-buddy lint go'
18+
Example command: 'code-buddy gitignore go'
1919
=====================================================`)
2020
} else {
2121
err := reg.RunCommand(os.Args[1], os.Args[2:])

0 commit comments

Comments
 (0)