Skip to content

Commit 62cbaaf

Browse files
authored
presubmit issue #2 (knative#3367)
1 parent 8aad743 commit 62cbaaf

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ docs:
190190

191191
.PHONY: presubmit-unit-tests
192192
presubmit-unit-tests: ## Run prow presubmit unit tests locally
193-
docker run --platform linux/amd64 -it --rm -v$(MAKEFILE_DIR):/src/ us-docker.pkg.dev/knative-tests/images/prow-tests:v20230616-086ddd644 sh -c 'cd /src && runner.sh ./test/presubmit-tests.sh --unit-tests'
193+
docker run --platform linux/amd64 -it --rm -v$(MAKEFILE_DIR):/src/ us-docker.pkg.dev/knative-tests/images/prow-tests:v20251211-ce6d6c676 sh -c 'cd /src && runner.sh ./test/presubmit-tests.sh --unit-tests'
194194

195195

196196
#############
@@ -219,8 +219,8 @@ check-rust: ## Check Rust templates' source
219219

220220
.PHONY: check-typescript
221221
check-typescript: ## Check TypeScript templates' source
222-
cd templates/typescript/cloudevents && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
223-
cd templates/typescript/http && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
222+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/cloudevents && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
223+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/http && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
224224

225225
.PHONY: test-templates
226226
test-templates: test-go test-node test-python test-quarkus test-springboot test-rust test-typescript ## Run all template tests
@@ -232,8 +232,8 @@ test-go: ## Test Go templates
232232

233233
.PHONY: test-node
234234
test-node: ## Test Node templates
235-
cd templates/node/cloudevents && npm ci && npm test && rm -rf node_modules
236-
cd templates/node/http && npm ci && npm test && rm -rf node_modules
235+
export npm_config_cache=/tmp/.npm-cache && cd templates/node/cloudevents && npm ci && npm test && rm -rf node_modules
236+
export npm_config_cache=/tmp/.npm-cache && cd templates/node/http && npm ci && npm test && rm -rf node_modules
237237

238238
.PHONY: test-python
239239
test-python: ## Test Python templates
@@ -256,8 +256,8 @@ test-rust: ## Test Rust templates
256256

257257
.PHONY: test-typescript
258258
test-typescript: ## Test Typescript templates
259-
cd templates/typescript/cloudevents && npm ci && npm test && rm -rf node_modules build
260-
cd templates/typescript/http && npm ci && npm test && rm -rf node_modules build
259+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/cloudevents && npm ci && npm test && rm -rf node_modules build
260+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/http && npm ci && npm test && rm -rf node_modules build
261261

262262
###############
263263
##@ Scaffolding

0 commit comments

Comments
 (0)