chore: add mise

This commit is contained in:
Kevin Franklin Kim 2025-09-16 16:36:49 +02:00
parent 87e9b2d8ce
commit eca9512323
No known key found for this signature in database
5 changed files with 16 additions and 11 deletions

View File

@ -13,6 +13,8 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: jdx/mise-action@v2
- uses: actions/checkout@v5
with:
fetch-depth: 0

View File

@ -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

4
.gitignore vendored
View File

@ -29,5 +29,5 @@ go.work.sum
!.golangci.yml
!.goreleaser.yml
## Ownbrew
!.ownbrew.yaml
## Mise
!.mise.toml

5
.mise.toml Normal file
View File

@ -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"

View File

@ -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 ===