Skip to content

Commit

Permalink
Check API code is generated during CI
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jul 31, 2023
1 parent 4b82182 commit c41f79f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check-generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ jobs:
- name: Copy embedded files to Go sources
run: make prebuild

- name: Generate API code
run: make generate-api

- name: Verify Changed files
uses: tj-actions/verify-changed-files@7f1b21ceb7ef533b97b46e89e2f882ee5cb17ae0
id: verify-changed-files

- name: Some files have changed
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "::error Changed files: ${{ steps.verify-changed-files.outputs.changed_files }} -- Please regenerate with make ui-static / make prebuild"
echo "::error Changed files: ${{ steps.verify-changed-files.outputs.changed_files }} -- Please regenerate with make ui-static / make prebuild / make generate-api"
exit 1

0 comments on commit c41f79f

Please # to comment.