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
|
fi
|
||||||
- name: Check that go.mod is tidied
|
- name: Check that go.mod is tidied
|
||||||
if: success() || failure() # run this step even if the previous one failed
|
if: success() || failure() # run this step even if the previous one failed
|
||||||
run: |
|
run: go mod tidy -diff
|
||||||
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
|
|
||||||
- name: Run code generators
|
- name: Run code generators
|
||||||
if: success() || failure() # run this step even if the previous one failed
|
if: success() || failure() # run this step even if the previous one failed
|
||||||
run: .github/workflows/go-generate.sh
|
run: .github/workflows/go-generate.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user