Skip to content

Commit d846cdf

Browse files
authored
chore(ci): fix coverage (#56)
1 parent 9646a25 commit d846cdf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
test:
1212
uses: go-simpler/.github/.github/workflows/test.yml@main
13+
with:
14+
packages: '.' # ignore `internal/assert`
1315
lint:
1416
uses: go-simpler/.github/.github/workflows/lint.yml@main
1517
vuln:

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
all: test lint
55

66
test:
7-
go test -race -shuffle=on -cover ./...
7+
go test -race -shuffle=on -cover .
88

99
test/cover:
10-
go test -race -shuffle=on -coverprofile=coverage.out ./...
10+
go test -race -shuffle=on -coverprofile=coverage.out .
1111
go tool cover -html=coverage.out
1212

1313
lint:
@@ -19,6 +19,7 @@ tidy:
1919
generate:
2020
go generate ./...
2121

22+
# run `make pre-commit` once to install the hook.
2223
pre-commit: .git/hooks/pre-commit test lint tidy generate
2324
git diff --exit-code
2425

0 commit comments

Comments
 (0)