diff options
author | Joe Chen <jc@unknwon.io> | 2022-02-27 19:58:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 19:58:23 +0800 |
commit | c7e8c145d14a42453e5a63ad3b00baa23204b9b4 (patch) | |
tree | 500d34828f8f8f66d128a46c738943c819db03d6 /.github/workflows | |
parent | 6d77712b1b72ba8c20f15a273ce2afd0a68d492c (diff) |
ci: check Go module tidiness (#6787)
[skip ci]
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/go.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 143a462a..29da5c39 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,6 +30,15 @@ jobs: with: version: latest args: --timeout=30m + - name: Check Go module tidiness + shell: bash + run: | + go mod tidy + STATUS=$(git status --porcelain go.mod go.sum) + if [ ! -z "$STATUS" ]; then + echo "Running go mod tidy modified go.mod and/or go.sum" + exit 1 + fi test: name: Test |