Upgrade Go toolchain pins and add Gitea Actions CI checks

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.
This commit is contained in:
software-maintainer committed 2026-10-28 07:45:30 +00:00
1 parent 55d4259f4a
commit 1fbb05339c
6 files changed
+181 -3

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
name: ci
on:
pull_request:
push:
branches: [main]
jobs:
check:
name: build and test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Run checks
run: ./scripts/check.sh