Skip to content

Commit acb91e6

Browse files
committed
Run book cronjob unit tests are run in make test
This makes sure that the cronjob's tutorial's tests are run in make test, which should avoid breaking the book again.
1 parent fc4f99a commit acb91e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ golangci-lint:
8888
##@ Tests
8989

9090
.PHONY: test
91-
test: test-unit test-integration test-testdata ## Run the unit and integration tests (used in the CI)
91+
test: test-unit test-integration test-testdata test-book ## Run the unit and integration tests (used in the CI)
9292

9393
.PHONY: test-unit
9494
test-unit: ## Run the unit tests
@@ -119,3 +119,7 @@ test-e2e-local: ## Run the end-to-end tests locally
119119
.PHONY: test-e2e-ci
120120
test-e2e-ci: ## Run the end-to-end tests (used in the CI)`
121121
./test/e2e/ci.sh
122+
123+
.PHONY: test-book
124+
test-book: ## Run the cronjob tutorial's unit tests to make sure we don't break it
125+
cd ./docs/book/src/cronjob-tutorial/testdata/project && make test

0 commit comments

Comments
 (0)