From eca9512323611bdc6968e9e81fedea41a72e3e58 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 16 Sep 2025 16:36:49 +0200 Subject: [PATCH] chore: add mise --- .github/workflows/{tag.yml => release.yml} | 2 ++ .github/workflows/{pr.yml => test.yml} | 2 ++ .gitignore | 4 ++-- .mise.toml | 5 +++++ Makefile | 14 +++++--------- 5 files changed, 16 insertions(+), 11 deletions(-) rename .github/workflows/{tag.yml => release.yml} (96%) rename .github/workflows/{pr.yml => test.yml} (96%) create mode 100644 .mise.toml diff --git a/.github/workflows/tag.yml b/.github/workflows/release.yml similarity index 96% rename from .github/workflows/tag.yml rename to .github/workflows/release.yml index 824465c..928a540 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,8 @@ jobs: release: runs-on: ubuntu-latest steps: + - uses: jdx/mise-action@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 diff --git a/.github/workflows/pr.yml b/.github/workflows/test.yml similarity index 96% rename from .github/workflows/pr.yml rename to .github/workflows/test.yml index 07a29be..cca57da 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,8 @@ jobs: test: runs-on: ubuntu-latest steps: + - uses: jdx/mise-action@v2 + - uses: actions/checkout@v5 - uses: actions/setup-go@v5 diff --git a/.gitignore b/.gitignore index c2b241b..c55f832 100644 --- a/.gitignore +++ b/.gitignore @@ -29,5 +29,5 @@ go.work.sum !.golangci.yml !.goreleaser.yml -## Ownbrew -!.ownbrew.yaml +## Mise +!.mise.toml diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..c06b8c5 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,5 @@ +[tools] +# https://github.com/golangci/golangci-lint/releases +golangci-lint = "2.4.0" +# https://github.com/go-courier/husky/releases +"github:go-courier/husky" = "1.8.1" diff --git a/Makefile b/Makefile index 460b641..639a875 100644 --- a/Makefile +++ b/Makefile @@ -4,17 +4,13 @@ # --- Targets ----------------------------------------------------------------- # This allows us to accept extra arguments -%: .husky +%: .mise @: -.PHONY: .husky -# Configure git hooks for husky -.husky: - @if ! command -v husky &> /dev/null; then \ - echo "ERROR: missing executeable 'husky', please run:"; \ - echo "\n$ go install github.com/go-courier/husky/cmd/husky@latest\n"; \ - fi - @git config core.hooksPath .husky +.PHONY: .mise +# Install dependencies +.mise: + @mise install ## === Tasks ===