Skip to content

Commit

Permalink
ci(pre-commit): add checkmake hook
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Jan 9, 2024
1 parent fc59f04 commit 16c1e3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ repos:
hooks:
- id: actionlint

- repo: https://github.com/mrtazz/checkmake
rev: 0.2.2
hooks:
- id: checkmake

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.1
hooks:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test run
.PHONY: all clean test default checks docker

default: build

Expand All @@ -13,12 +13,12 @@ pc-install:

checks: pc-run test

test:
go test -v -race -covermode=atomic -coverprofile='coverage.txt' ./...

pc-run:
pre-commit run -a

test:
go test -v -race -covermode=atomic -coverprofile='coverage.txt' ./...

docker: compose-up

compose-up:
Expand Down

0 comments on commit 16c1e3f

Please sign in to comment.