Skip to content

Commit

Permalink
ci(dep): Check only for go.mod file (#1397)
Browse files Browse the repository at this point in the history
This commit is to update go-mod github action step to check for only
go.mod file. Ideally, both go.mod and go.sum should be checked, however,
the current behavior of `go mod tidy` command will not clean up old
entries in go.sum.

Additionally, dependentbot is currently failing as there is dirty change
in go.sum file.
  • Loading branch information
sayboras committed Sep 26, 2020
1 parent 763b998 commit f163073
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Check go mod
run: |
go mod tidy
git diff --exit-code
git diff --exit-code go.mod
# We already run the current golangci-lint in tests, but here we test
# our GitHub action with the latest stable golangci-lint.
Expand Down
6 changes: 0 additions & 6 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f163073

Please sign in to comment.