The gitea.com/actions/setup-go mirror only has tags up to v3. v3 supports go-version-file which is all we need. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
764 B
YAML
36 lines
764 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: https://gitea.com/actions/checkout@v4
|
|
- uses: https://gitea.com/actions/setup-go@v3
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go build ./...
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: https://gitea.com/actions/checkout@v4
|
|
- uses: https://gitea.com/actions/setup-go@v3
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go test ./...
|
|
|
|
vet:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: https://gitea.com/actions/checkout@v4
|
|
- uses: https://gitea.com/actions/setup-go@v3
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go vet ./...
|