Skip to content

Fix CI

Fix CI #51

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
GOEXPERIMENT: jsonv2
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '>=1.26.4'
- name: Install Tools
run: go install tool
- name: Gofumpt
run: go tool gofumpt -d -e .
- name: Go Vet
run: go vet ./...
- name: Staticcheck
run: go tool staticcheck ./...
- name: Govulncheck
run: go tool govulncheck ./...
- name: OpenAPI specification errors
run: go tool swag init -g cmd/app/main.go -o . -ot yaml --v3.1 --parseDependency && mv swagger.yaml openapi-v3.yaml && git diff --exit-code openapi-v3.yaml
- name: Tests
run: go test ./...