Skip to content

Commit 50a8919

Browse files
committed
ci(ci): add typo3scan to matrix make build
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
1 parent ab51315 commit 50a8919

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ jobs:
289289
- ssh-scan
290290
- sslyze
291291
- trivy
292+
- typo3scan
292293
- wpscan
293294
- zap
294295
steps:
@@ -470,7 +471,6 @@ jobs:
470471
- screenshooter
471472
- test-scan
472473
- whatweb
473-
- typo3scan
474474

475475
steps:
476476
- name: Checkout
@@ -550,7 +550,6 @@ jobs:
550550
strategy:
551551
matrix:
552552
scanner:
553-
- typo3scan
554553
- whatweb
555554

556555
steps:
@@ -923,19 +922,6 @@ jobs:
923922
npx jest --ci --color ./hooks/notification.test.js
924923
helm -n integration-tests uninstall test-scan http-webhook notification-hook
925924
926-
# ---- Typo3scan Integration Tests ----
927-
928-
- name: "typo3scan Integration Tests"
929-
run: |
930-
kubectl -n integration-tests delete scans --all
931-
helm -n integration-tests install typo3scan ./scanners/typo3scan/ \
932-
--set="parser.image.tag=sha-$(git rev-parse --short HEAD)" \
933-
--set="parser.image.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/parser-typo3scan" \
934-
--set="parser.env[0].name=CRASH_ON_FAILED_VALIDATION" \
935-
--set-string="parser.env[0].value=true"
936-
cd tests/integration/
937-
npx jest --ci --color scanner/typo3scan.test.js
938-
939925
# ---- Whatweb Integration Tests ----
940926

941927
- name: "Whatweb Integration Tests"

scanners/typo3scan/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ custom_scanner = set
1212
include ../../scanners.mk
1313

1414
deploy-test-deps: deploy-test-dep-old-typo3
15+
16+
integration-tests:
17+
@echo ".: 🩺 Starting integration test in kind namespace 'integration-tests'."
18+
kubectl -n integration-tests delete scans --all
19+
cd ../../tests/integration/ && npm ci
20+
cd ../../scanners/${scanner}
21+
npx --yes --package jest@$(JEST_VERSION) jest --verbose --ci --colors --coverage --passWithNoTests ${scanner}/integration-tests
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

tests/integration/scanner/typo3scan.test.js renamed to scanners/typo3scan/integration-tests/typo3scan.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
const { scan } = require("../helpers");
5+
const { scan } = require("../../../tests/integration/helpers");
66

77
jest.retryTimes(3);
88

@@ -39,4 +39,4 @@ test(
3939
).rejects.toThrow("HTTP request failed");
4040
},
4141
3 * 60 * 1000
42-
);
42+
);

0 commit comments

Comments
 (0)