mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
chore: add mise
This commit is contained in:
parent
87e9b2d8ce
commit
eca9512323
@ -13,6 +13,8 @@ jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: jdx/mise-action@v2
|
||||
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
@ -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
4
.gitignore
vendored
@ -29,5 +29,5 @@ go.work.sum
|
||||
!.golangci.yml
|
||||
!.goreleaser.yml
|
||||
|
||||
## Ownbrew
|
||||
!.ownbrew.yaml
|
||||
## Mise
|
||||
!.mise.toml
|
||||
|
||||
5
.mise.toml
Normal file
5
.mise.toml
Normal 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"
|
||||
14
Makefile
14
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 ===
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user