-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
goLint: add a check that go.mod is tidied
- Loading branch information
1 parent
6d167a3
commit a6cb558
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,15 @@ jobs: | |
run: | | ||
git config --global url.https://${{ secrets.PAT }}@github.com/.insteadOf git+ssh://[email protected] | ||
git config --global [email protected]:.insteadOf https://github.com/ | ||
- name: Check that go.mod is tidied | ||
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 | ||
- name: Run Linter | ||
if: success() || failure() # run this step even if the previous one failed | ||
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 | ||
with: | ||
version: v1.59.1 | ||
|