diff options
author | Joe Chen <jc@unknwon.io> | 2022-03-15 22:42:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 22:42:22 +0800 |
commit | 1791665f744b4fccf263b182e5f0fa2f2a195610 (patch) | |
tree | 32a6311888f527c064b37964bdfe9517be2df9bf /.github/workflows | |
parent | def6fcc4dcf8ca960319d5f5406039e5a482ac4d (diff) |
chore: run `task generate` (#6844)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/go.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 29da5c39..4490ac84 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,13 +30,23 @@ jobs: with: version: latest args: --timeout=30m - - name: Check Go module tidiness + - 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 - STATUS=$(git status --porcelain go.mod go.sum) + task generate + STATUS=$(git status --porcelain) if [ ! -z "$STATUS" ]; then - echo "Running go mod tidy modified go.mod and/or go.sum" + echo "Unstaged files:" + echo $STATUS + echo "Run 'go mod tidy' or 'task generate' and commit them" exit 1 fi |