mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-10-14 00:59:21 +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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
@ -24,6 +26,13 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
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
|
- name: Run gofmt
|
||||||
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
|
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user