[ci] Check generated files

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2023-10-16 10:52:36 +02:00
parent e8dbfcb644
commit 126d59cff9

View File

@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
@ -24,6 +26,13 @@ jobs:
- name: Build
run: go build -v ./...
- name: Check generated files
run: |
curl https://get.ignite.com/cli | bash
./ignite chain init --clear-cache --yes
rm ignite
if [ "$(git diff --stat | wc -l)" -gt 0 ]; then exit 1; fi
- name: Run gofmt
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi