From a6efd403cc72d824c9c948d7c7e29d2c56ed481a Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 30 Jan 2025 14:10:48 +1100 Subject: [PATCH] chore: add lefthook --- bin/.lefthook-1.10.10.pkg | 1 + bin/lefthook | 1 + lefthook.yml | 7 +++++++ 3 files changed, 9 insertions(+) create mode 120000 bin/.lefthook-1.10.10.pkg create mode 120000 bin/lefthook create mode 100644 lefthook.yml diff --git a/bin/.lefthook-1.10.10.pkg b/bin/.lefthook-1.10.10.pkg new file mode 120000 index 0000000..383f451 --- /dev/null +++ b/bin/.lefthook-1.10.10.pkg @@ -0,0 +1 @@ +hermit \ No newline at end of file diff --git a/bin/lefthook b/bin/lefthook new file mode 120000 index 0000000..518e63f --- /dev/null +++ b/bin/lefthook @@ -0,0 +1 @@ +.lefthook-1.10.10.pkg \ No newline at end of file diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..a287e0c --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,7 @@ +pre-push: + jobs: + - name: test + run: go test -v ./... + + - name: lint + run: golangci-lint run