Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
GO_VERSION: "1.19"
PYTHON_VERSION: "3.8.10"
NODE_VERSION: "16"
NPM_VERSION: "7"
NPM_VERSION: "8.19.2"

jobs:
# ---- Unit-Test ----
Expand Down Expand Up @@ -576,6 +576,8 @@ jobs:
run: make kind-import

# ---- Install Test Dependencies ----
- name: Update NPM
run: npm i -g npm@${{ env.NPM_VERSION }}
Comment thread
Weltraumschaf marked this conversation as resolved.

- name: "Install Test Dependencies"
working-directory: ./hooks
Expand Down
13 changes: 10 additions & 3 deletions hooks.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ deploy: ## 💾 Deploy this module via HelmChart into namespace "integration-tes
.PHONY: integration-tests
integration-tests: ## 🩺 Start integration test for this module in the namespace "integration-tests"
@echo ".: 🩺 Starting integration test in kind namespace 'integration-tests'."
kubectl -n integration-tests delete scans --all
npm ci --prefix $(TESTS_HELPERS_DIR)
cd $(hook-prefix) && npm ci && npm run test --package jest@$(JEST_VERSION)
@if [ -d "$(hook-prefix)/integration-tests" ]; then \
kubectl -n integration-tests delete scans --all; \
npm ci --prefix $(TESTS_HELPERS_DIR); \
cd $(hook-prefix)/integration-tests && npm ci && npm run test --package jest@$(JEST_VERSION); \
else \
echo ".: 🚫 Integration tests folder for $(name) does not exist, skipped."; \
fi



6 changes: 6 additions & 0 deletions hooks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ integration-tests:
for dir in $(wildcard */.); do \
$(MAKE) integration-tests -C $$dir;\
done

.PHONY: unit-tests
unit-tests:
for dir in $(wildcard */.); do \
$(MAKE) unit-tests -C $$dir;\
done
Loading