Skip to content

Commit

Permalink
Check go.mod
Browse files Browse the repository at this point in the history
Signed-off-by: Daichi Sakaue <[email protected]>
  • Loading branch information
yokaze committed Apr 5, 2024
1 parent e04b2e3 commit 885f0f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
key: cache-files-${{ env.cache-version }}-go-${{ hashFiles('go.mod') }}-${{ hashFiles('Makefile') }}
- name: Setup tools
run: make setup
- name: Run code check
run: make check-generate
- name: Run lint
run: make lint
- name: Run environment
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ build: ## Build cilium-policy-viewer
mkdir -p $(BIN_DIR)
go build -o $(BIN_DIR)/cilium-policy main.go

.PHONY: check-generate
check-generate:
go mod tidy
git diff --exit-code --name-only

.PHONY: lint
lint: ## Run lint tools
go vet ./...
Expand Down

0 comments on commit 885f0f1

Please sign in to comment.