Files
DoGaMa-serv/.gitea/workflows/ci.yml
T
tony 46bc90a0e8
CI / validate (pull_request) Failing after 2m30s
feat(release): harden production packaging
2026-08-09 22:11:21 +02:00

39 lines
1.0 KiB
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install specification validators
run: python -m pip install --requirement tools/requirements-validation.txt
- name: Check formatting
run: test -z "$(gofmt -l .)"
- name: Test
run: go test ./...
- name: Build without cgo
run: CGO_ENABLED=0 go build ./...
- name: Race detection
run: go test -race ./...
- name: Vet
run: go vet ./...
- name: Staticcheck
run: go run honnef.co/go/tools/cmd/staticcheck@v0.6.1 ./...
- uses: golangci/golangci-lint-action@v8
with:
version: v2.4.0
- name: Validate specifications and Compose contract
run: python tools/validate_spec.py