GitHub is returning 500 errors for actions/checkout and actions/setup-go. Switch to Gitea's own mirrors at gitea.com/actions/ to avoid the dependency. 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@v5
|
|
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@v5
|
|
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@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go vet ./...
|