Skip to content

Commit c1a5bce

Browse files
authored
Add check for go.mod and go.sum changes (#182)
1 parent f9bf557 commit c1a5bce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
echo "::set-output name=version::$(grep "VERSION = " Makefile | cut -d " " -f 3)"
5656
echo "::set-output name=date::$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
5757
echo "::set-output name=go_path::$(go env GOPATH)"
58+
- name: Check if go.mod and go.sum are up to date
59+
run: |
60+
go mod tidy && git diff --exit-code -- go.mod go.sum
5861
- name: Check if CRDs changed
5962
run: |
6063
make update-crds && git diff --name-only --exit-code deploy/manifests/crds/*

0 commit comments

Comments
 (0)