Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
persist-credentials: false
- uses: jdx/mise-action@b44d12e7d0d8ee7461bb893e1b1993500433185b # v5.2.7
- run: make check
- run: mise run check
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,17 @@ Add it to `~/.claude/settings.json`:

## Development

The repository pins its tools in `mise.toml`.
The repository pins its tools and defines its tasks in `mise.toml`.

```console
mise install
mise exec -- make check
mise run check
```

`make build` writes `bin/plonge`.
`make lint` runs `gofmt -l` and `go vet`.
`make test` runs the tests with gotestsum.
`mise run build` writes `bin/plonge`.
`mise run lint` runs `gofmt -l` and `go vet`.
`mise run test` runs the tests with gotestsum.
`mise run check` runs `lint` and `test`.

## License

Expand Down
26 changes: 26 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
[tools]
go = "1.26.10"
"aqua:gotestyourself/gotestsum" = "1.13.0"

[tasks.build]
description = "Build bin/plonge"
run = "go build -o bin/plonge ./cmd/plonge"

[tasks.lint]
description = "Check formatting with gofmt and run go vet"
run = [
'''
out="$(gofmt -l .)"
if [ -n "$out" ]; then
echo "gofmt needed:"
echo "$out"
exit 1
fi
''',
"go vet ./...",
]

[tasks.test]
description = "Run the tests with gotestsum"
run = "gotestsum --format pkgname -- ./..."

[tasks.check]
description = "Run lint and test"
depends = ["lint", "test"]
Loading