mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
Run go mod tidy as part of GitHub actions
Make sure go.mod and go.sum match the current source in the module. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
738f593fd1
commit
4259e17bb7
@@ -29,5 +29,11 @@ jobs:
|
||||
if: matrix.go-version == '1.16' && matrix.platform == 'ubuntu-latest'
|
||||
run: diff -u <(echo -n) <(go fmt $(go list ./...))
|
||||
|
||||
- name: Check Go modules
|
||||
if: matrix.go-version == '1.16'
|
||||
run: |
|
||||
go mod tidy
|
||||
git diff --exit-code
|
||||
|
||||
- name: Run unit tests
|
||||
run: go test -v ./...
|
||||
|
||||
Reference in New Issue
Block a user