Skip to content

Commit

Permalink
ci: add check for swagger changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Jan 9, 2025
1 parent 9636836 commit f87f733
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Check for Swagger changes
run: |
go install github.com/swaggo/swag/cmd/swag@latest
swag init
swag fmt
git diff --quiet docs || (echo "Swagger is not up to date" ; exit 1)
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down

0 comments on commit f87f733

Please sign in to comment.