forked from quic-go/quic-go
ci: use go mod tidy -diff to check for tidied go.mod (#5303)
This commit is contained in:
7
.github/workflows/lint.yml
vendored
7
.github/workflows/lint.yml
vendored
@@ -20,12 +20,7 @@ jobs:
|
||||
fi
|
||||
- name: Check that go.mod is tidied
|
||||
if: success() || failure() # run this step even if the previous one failed
|
||||
run: |
|
||||
cp go.mod go.mod.orig
|
||||
cp go.sum go.sum.orig
|
||||
go mod tidy
|
||||
diff go.mod go.mod.orig
|
||||
diff go.sum go.sum.orig
|
||||
run: go mod tidy -diff
|
||||
- name: Run code generators
|
||||
if: success() || failure() # run this step even if the previous one failed
|
||||
run: .github/workflows/go-generate.sh
|
||||
|
||||
Reference in New Issue
Block a user