mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-09-06 00:57:18 -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'
|
if: matrix.go-version == '1.16' && matrix.platform == 'ubuntu-latest'
|
||||||
run: diff -u <(echo -n) <(go fmt $(go list ./...))
|
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
|
- name: Run unit tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|||||||
@@ -1,6 +1,2 @@
|
|||||||
golang.org/x/sys v0.0.0-20210216163648-f7da38b97c65 h1:pTMjDVnP5eVRRlWO76rEWJ8JoC6Lf1CmyjPZXRiy2Sw=
|
|
||||||
golang.org/x/sys v0.0.0-20210216163648-f7da38b97c65/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
||||||
golang.org/x/sys v0.0.0-20210216224549-f992740a1bac h1:9glrpwtNjBYgRpb67AZJKHfzj1stG/8BL5H7In2oTC4=
|
|
||||||
golang.org/x/sys v0.0.0-20210216224549-f992740a1bac/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
||||||
golang.org/x/sys v0.0.0-20210301091718-77cc2087c03b h1:kHlr0tATeLRMEiZJu5CknOw/E8V6h69sXXQFGoPtjcc=
|
golang.org/x/sys v0.0.0-20210301091718-77cc2087c03b h1:kHlr0tATeLRMEiZJu5CknOw/E8V6h69sXXQFGoPtjcc=
|
||||||
golang.org/x/sys v0.0.0-20210301091718-77cc2087c03b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210301091718-77cc2087c03b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
|||||||
Reference in New Issue
Block a user