Files
grafana/.github/workflows/pr-backend-code-checks.yml
Jev Forsberg 9be18278d9 Chore: Move code verification to proper workflow (#101742)
* baldm0mma/ move verification to new workflow

* baldm0mma/ test if needs install step

* baldm0mma/ remove install step

* baldm0mma/ update go version
2025-03-07 13:13:40 -07:00

38 lines
806 B
YAML

name: Backend Code Checks
description: Validate go.mod and OpenAPI specifications
on:
pull_request:
paths-ignore:
- '*.md'
- 'docs/**'
- 'latest.json'
permissions:
contents: read
jobs:
validate-configs:
name: Validate Backend Configs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Verify code generation
run: |
CODEGEN_VERIFY=1 make gen-cue
CODEGEN_VERIFY=1 make gen-jsonnet
- name: Validate go.mod
run: go run scripts/modowners/modowners.go check go.mod
- name: Generate and Validate OpenAPI Specs
run: |
make swagger-gen