From 470953b5d65c956bbb30a50d50a08b1f949183e1 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 10 Aug 2022 20:02:49 -0700 Subject: [PATCH] Add check for go.mod and go.sum changes --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fed8c1cef..33462efba0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,9 @@ jobs: echo "::set-output name=version::$(grep "VERSION = " Makefile | cut -d " " -f 3)" echo "::set-output name=date::$(date -u +"%Y-%m-%dT%H:%M:%SZ")" echo "::set-output name=go_path::$(go env GOPATH)" + - name: Check if go.mod and go.sum are up to date + run: | + go mod tidy && git diff --exit-code -- go.mod go.sum - name: Check if CRDs changed run: | make update-crds && git diff --name-only --exit-code deploy/manifests/crds/*