chore: run task generate (#6844)

# Conflicts:
#	.github/workflows/go.yml
#	internal/assets/templates/templates_gen.go
This commit is contained in:
Joe Chen
2022-03-15 22:42:22 +08:00
parent 640e2f62e0
commit 4e10265568
4 changed files with 66 additions and 47 deletions

View File

@@ -30,6 +30,25 @@ jobs:
with:
version: latest
args: --timeout=30m
- name: Install Task
uses: arduino/setup-task@v1
- name: Install go-bindata
shell: bash
run: |
curl --silent --location --output /usr/local/bin/go-bindata https://github.com/kevinburke/go-bindata/releases/download/v3.23.0/go-bindata-linux-amd64
chmod +x /usr/local/bin/go-bindata
- name: Check Go module tidiness and generated files
shell: bash
run: |
go mod tidy
task generate
STATUS=$(git status --porcelain)
if [ ! -z "$STATUS" ]; then
echo "Unstaged files:"
echo $STATUS
echo "Run 'go mod tidy' or 'task generate' and commit them"
exit 1
fi
test:
name: Test