Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
ci: only generate on commit stage
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomasi committed Sep 2, 2021
1 parent b344927 commit db3358d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
rev: feature/add-go-generate
hooks:
- id: go-generate
default_stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

setup: install-pre-commit-hooks
go mod tidy

Expand All @@ -6,9 +7,3 @@ install-pre-commit-hooks:

run-pre-commit:
pre-commit run -a

test:
go test -race -coverprofile=coverage.out -covermode=atomic

codecov: test
codecov -t ${CODECOV_TOKEN}

0 comments on commit db3358d

Please # to comment.