mirror of https://github.com/grafana/grafana
Chore: Migrate `pr-lint-backend` from Drone to GHAs (#101482)
* baldm0mma/ create backend-code-checks workflow * baldm0mma/ update to validate backend configs * baldm0mma/ rem unused dir * baldm0mma/ update codeowners * baldm0mma/ update naming * baldm0mma/ update case * baldm0mma/ update workflow name * baldm0mma/ rem action and run the commands directly * baldm0mma/ update codeownders * baldm0mma/ update codeowners for workflow * baldm0mma/ update workflow name in codeownerspull/101532/head
parent
5f6b00a72f
commit
dc61bf0855
@ -0,0 +1,32 @@ |
||||
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: '1.23.5' |
||||
cache: true |
||||
|
||||
- name: Validate go.mod |
||||
run: go run scripts/modowners/modowners.go check go.mod |
||||
|
||||
- name: Generate and Validate OpenAPI Specs |
||||
run: | |
||||
make swagger-gen |
Loading…
Reference in new issue