diff --git a/.prettierignore b/.prettierignore index 9d269aba..947c8738 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,4 @@ dist-types coverage .vscode **/CHANGELOG.md +.prow.yaml diff --git a/.prow.yaml b/.prow.yaml index 3791b6d5..2ae971d3 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -10,6 +10,8 @@ presubmits: - '-c' - | set -euo pipefail + apk update + apk add python3 make g++ yarn install --frozen-lockfile yarn test:all @@ -24,11 +26,56 @@ presubmits: - '-c' - | set -euo pipefail + apk update + apk add python3 make g++ yarn install --frozen-lockfile yarn lint:all yarn tsc:full yarn prettier:check + - name: presubmit-kbp-license-header-check + decorate: true + always_run: true + spec: + containers: + - image: nephio/gotests:1671656214984921088 + command: + - "/bin/sh" + - "-c" + - | + /usr/local/bin/checklicense.sh > ${ARTIFACTS}/license_headers_results.txt + + - name: presubmit-kbp-scancode-toolkit + decorate: true + always_run: true + spec: + containers: + - image: nephio/scancode-toolkit:v31.2.5 + command: + - "/bin/sh" + args: + - "-c" + - | + /scancode-toolkit/scancode --ignore "whitelist.json" -clpeui -n 2 --html ${ARTIFACTS}/scancode_report.html . --tallies-with-details + resources: + requests: + cpu: 2 + memory: 1Gi + + - name: presubmit-kbp-fossology + decorate: true + always_run: true + spec: + containers: + - image: fossology/fossology:scanner + command: + - "/bin/bash" + args: + - "-c" + - | + /bin/fossologyscanner --report SPDX_JSON repo nomos ojo copyright keyword + cp -R results ${ARTIFACTS}/ + - name: build-push-pre-image-kbp cluster: default always_run: true @@ -63,4 +110,4 @@ presubmits: secretName: regcred items: - key: .dockerconfigjson - path: config.json \ No newline at end of file + path: config.json