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:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: jdx/mise-action@v2
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -19,6 +19,8 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: jdx/mise-action@v2
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@ -29,5 +29,5 @@ go.work.sum
|
|||||||
!.golangci.yml
|
!.golangci.yml
|
||||||
!.goreleaser.yml
|
!.goreleaser.yml
|
||||||
|
|
||||||
## Ownbrew
|
## Mise
|
||||||
!.ownbrew.yaml
|
!.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 -----------------------------------------------------------------
|
# --- Targets -----------------------------------------------------------------
|
||||||
|
|
||||||
# This allows us to accept extra arguments
|
# This allows us to accept extra arguments
|
||||||
%: .husky
|
%: .mise
|
||||||
@:
|
@:
|
||||||
|
|
||||||
.PHONY: .husky
|
.PHONY: .mise
|
||||||
# Configure git hooks for husky
|
# Install dependencies
|
||||||
.husky:
|
.mise:
|
||||||
@if ! command -v husky &> /dev/null; then \
|
@mise install
|
||||||
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
|
|
||||||
|
|
||||||
## === Tasks ===
|
## === Tasks ===
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user