Skip to content

Commit 10baa89

Browse files
authored
Merge pull request #107 from justinsb/gomod_tidy
github actions: try running go mod tidy also
2 parents a32c56c + 54e317a commit 10baa89

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,30 @@ jobs:
3333
exit 1
3434
fi
3535
36+
verify-gomod:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Set up go
40+
uses: actions/setup-go@v2
41+
with:
42+
go-version: 1.14
43+
stable: true
44+
45+
- run: |
46+
echo "::set-env name=GOPATH::${HOME}/go"
47+
48+
- uses: actions/checkout@v2
49+
50+
- run: go mod tidy
51+
52+
- run: |
53+
changes=$(git status --porcelain)
54+
if [[ -n "${changes}" ]]; then
55+
echo "::error Changes detected from go mod tidy:"
56+
echo "${changes}"
57+
exit 1
58+
fi
59+
3660
kind-e2e:
3761
name: Test with a Kind cluster
3862
runs-on: [ubuntu-latest]
@@ -52,4 +76,4 @@ jobs:
5276
run: |
5377
kubectl get nodes -o wide
5478
kubectl get pods --all-namespaces -o wide
55-
kubectl get services --all-namespaces -o wide
79+
kubectl get services --all-namespaces -o wide

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ require (
66
github.com/blang/semver v3.5.0+incompatible
77
github.com/evanphx/json-patch v4.5.0+incompatible
88
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
9-
github.com/onsi/gomega v1.8.1
109
github.com/pkg/errors v0.8.1
1110
github.com/prometheus/client_golang v1.0.0
12-
golang.org/x/net v0.0.0-20200625001655-4c5254603344
1311
golang.org/x/tools v0.0.0-20200714190737-9048b464a08d
1412
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
1513
k8s.io/api v0.18.4

0 commit comments

Comments
 (0)