Skip to content

Commit 49b5640

Browse files
committed
Add hook Directory For Each Hook
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
1 parent c5779d9 commit 49b5640

142 files changed

Lines changed: 6 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yaml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
3636
architecture: x64 # (x64 or x86) - defaults to x64
3737
- run: |
38-
cd hooks/${{ matrix.unit }}/
38+
cd hooks/${{ matrix.unit }}/hook/
3939
./gradlew test
4040
4141
# ---- Unit-Test | Python ----
@@ -89,7 +89,7 @@ jobs:
8989
done
9090
- name: "Install npm dependencies in all hook sub projects"
9191
run: |
92-
for dir in hooks/*/
92+
for dir in hooks/*/hook
9393
do
9494
cd $dir
9595
if [ -f package.json ] && [ -f package-lock.json ]; then
@@ -109,7 +109,8 @@ jobs:
109109
npm ci
110110
- name: "Compile Typescript"
111111
run: |
112-
cd hooks/cascading-scans
112+
cd hooks/cascading-scans/hook
113+
npm ci
113114
npm run build
114115
- name: "Run tests & publish code coverage"
115116
uses: paambaati/codeclimate-action@v2.6.0
@@ -325,8 +326,8 @@ jobs:
325326
- name: Build and Push
326327
uses: docker/build-push-action@v2
327328
with:
328-
context: ./hooks/${{ matrix.hook }}
329-
file: ./hooks/${{ matrix.hook }}/Dockerfile
329+
context: ./hooks/${{ matrix.hook }}/hook
330+
file: ./hooks/${{ matrix.hook }}/hook/Dockerfile
330331
build-args: |
331332
namespace=${{ env.DOCKER_NAMESPACE }}
332333
baseImageTag=${{ env.baseImageTag }}

hooks/cascading-scans/kubernetes-label-selector.test.js renamed to hooks/cascading-scans/hook/kubernetes-label-selector.test.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)