Skip to content

Commit 701fd83

Browse files
committed
Make it easier to run tools ci locally
This helped me test the dependency change fixes in the previous commit.
1 parent a2eaa9d commit 701fd83

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/checks-codecov.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,4 @@ jobs:
246246
cache: false
247247

248248
- name: Development tools can be run
249-
run: |
250-
go run -modfile tools/go.mod github.com/tektoncd/cli/cmd/tkn version
251-
go run -modfile tools/go.mod sigs.k8s.io/kustomize/kustomize/v5 version
252-
go run -modfile tools/go.mod helm.sh/helm/v3/cmd/helm version
253-
go run -modfile tools/go.mod github.com/open-policy-agent/conftest --version
249+
run: make tools-ci

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,14 @@ benchmark_data: benchmark/simple/data.tar.gz ## Prepare data for benchmark
197197
.PHONY: benchmark
198198
benchmark: benchmark_simple ## Run benchmarks
199199

200+
tools-ci:
201+
go run -modfile tools/go.mod github.com/tektoncd/cli/cmd/tkn version && \
202+
go run -modfile tools/go.mod sigs.k8s.io/kustomize/kustomize/v5 version && \
203+
go run -modfile tools/go.mod helm.sh/helm/v3/cmd/helm version && \
204+
go run -modfile tools/go.mod github.com/open-policy-agent/conftest --version
205+
200206
.PHONY: ci
201-
ci: test lint-fix acceptance ## Run the usual required CI tasks
207+
ci: test lint-fix acceptance tools-ci ## Run the usual required CI tasks
202208

203209
##@ Linters
204210

0 commit comments

Comments
 (0)