mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
[ci] Check generated files
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
e8dbfcb644
commit
126d59cff9
9
.github/workflows/audit.yaml
vendored
9
.github/workflows/audit.yaml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user