Skip to content

Commit a101b88

Browse files
committed
chore: exclude demos and components from tests run
1 parent 2519e6a commit a101b88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ golangci-lint run ./...
1616
echo ""
1717
echo '* Run: all tests and generate coverage report'
1818
go clean -testcache
19-
go test -count=1 -timeout 30s ./... -covermode=atomic
19+
go test -count=1 -timeout 30s $(go list ./... | grep -Ev 'demos|components') -covermode=atomic

.githooks/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ golangci-lint run ./...
1616
echo ""
1717
echo '* Run: all tests and generate coverage report'
1818
go clean -testcache
19-
go test -count=1 -timeout 30s ./... -covermode=atomic
19+
go test -count=1 -timeout 30s $(go list ./... | grep -Ev 'demos|components') -covermode=atomic

0 commit comments

Comments
 (0)