Skip to content

Commit

Permalink
Run book cronjob unit tests are run in make test
Browse files Browse the repository at this point in the history
This makes sure that the cronjob's tutorial's tests are run in make
test, which should avoid breaking the book again.
  • Loading branch information
DirectXMan12 committed Apr 26, 2021
1 parent fc4f99a commit acb91e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ golangci-lint:
##@ Tests

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

.PHONY: test-unit
test-unit: ## Run the unit tests
Expand Down Expand Up @@ -119,3 +119,7 @@ test-e2e-local: ## Run the end-to-end tests locally
.PHONY: test-e2e-ci
test-e2e-ci: ## Run the end-to-end tests (used in the CI)`
./test/e2e/ci.sh

.PHONY: test-book
test-book: ## Run the cronjob tutorial's unit tests to make sure we don't break it
cd ./docs/book/src/cronjob-tutorial/testdata/project && make test

0 comments on commit acb91e6

Please sign in to comment.