Bump the go directive and mise tool pin to Go 1.27.1, the newest toolchain available in the build environment; module versions already resolve to the newest releases present in the pinned module cache. Add .gitea/workflows/ci.yml, which runs on every pull request and every push to main and invokes scripts/check.sh (gofmt, go mod verify, go vet, go build, go test -cover). Also cover the Gitea client token/slug handling with unit tests and document the CI workflow. Add the mise check task so the CI checks can be run locally.
19 lines
325 B
TOML
19 lines
325 B
TOML
[tools]
|
|
go = "1.27.1"
|
|
|
|
[tasks.build]
|
|
run = "go build -o bin/stamp ./cmd/stamp"
|
|
|
|
[tasks.test]
|
|
run = "go test ./..."
|
|
|
|
[tasks.lint]
|
|
run = "golangci-lint run"
|
|
|
|
[tasks.install]
|
|
run = "go install ./cmd/stamp"
|
|
|
|
[tasks.check]
|
|
description = "Run formatting, vet, build, and tests (the same checks CI runs)"
|
|
run = "./scripts/check.sh"
|