Skip to content

Commit

Permalink
Add check for go.mod and go.sum changes (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Aug 11, 2022
1 parent f9bf557 commit c1a5bce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit c1a5bce

Please sign in to comment.