diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0150168..6640e4c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,6 +35,16 @@ jobs: - run: pnpm install + - name: check for outdated openapi.json + run: | + pnpm backend:openapi + if [[ -n $(git status --porcelain) ]]; then + echo "OpenAPI is not updated" + exit 1 + else + echo "No changes" + fi + - run: pnpm test - - run: pnpm lint \ No newline at end of file + - run: pnpm lint