From c99e2a147f9c785e8fb767e55a4a6016090941c8 Mon Sep 17 00:00:00 2001 From: CrazyBolillo Date: Sun, 28 Jul 2024 23:14:16 -0600 Subject: [PATCH] ci: verify swagger.yaml is up to date --- .github/workflows/qa.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 1bd2d9c..877c220 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -15,6 +15,19 @@ jobs: - uses: golangci/golangci-lint-action@v5 with: version: latest + swagger: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + - name: Install swag + run: go install github.com/swaggo/swag/cmd/swag@latest + - name: Generate swagger.yaml + run: make docs + - name: Verify swagger.yaml is up to date + run: git diff --exit-code docs/swagger.yaml sqlc: runs-on: ubuntu-latest steps: