Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 076ad93

Browse files
committed
Run hook integration test with image of the current commit
1 parent 05c5831 commit 076ad93

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,15 @@ jobs:
328328
npx jest --ci --color no-scan-definition-error
329329
- name: "Hooks Integration Tests"
330330
run: |
331-
helm -n integration-tests install update-category ./hooks/update-field --set="attribute.name=category" --set="attribute.value=fancy-category"
332-
helm -n integration-tests install update-severity ./hooks/update-field --set="attribute.name=severity" --set="attribute.value=high"
333-
helm -n integration-tests install test-scan ./integrations/test-scan
331+
helm -n integration-tests install update-category ./hooks/update-field/ \
332+
--set="image.tag=sha-$(git rev-parse --short HEAD)" \
333+
--set="attribute.name=category" \
334+
--set="attribute.value=fancy-category"
335+
helm -n integration-tests install update-severity ./hooks/update-field/ \
336+
--set="image.tag=sha-$(git rev-parse --short HEAD)" \
337+
--set="attribute.name=severity" \
338+
--set="attribute.value=high"
339+
helm -n integration-tests install test-scan ./integrations/test-scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
334340
cd tests/integration/
335341
npx jest --ci --color read-write-hook
336342
helm -n integration-tests uninstall test-scan update-category update-severity

0 commit comments

Comments
 (0)