2021-08-31 23:39:36 +00:00
|
|
|
# You can override the included template(s) by including variable overrides
|
|
|
|
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
|
|
|
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
|
|
|
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
|
|
|
# Note that environment variables can be set in several places
|
|
|
|
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
2021-08-24 23:29:12 +00:00
|
|
|
cache:
|
2021-08-31 23:39:36 +00:00
|
|
|
key: "${CI_COMMIT_REF_SLUG}"
|
2021-08-24 23:29:12 +00:00
|
|
|
paths:
|
2021-08-31 23:39:36 +00:00
|
|
|
- node_modules/
|
2021-09-01 02:38:40 +00:00
|
|
|
|
2021-08-24 23:29:12 +00:00
|
|
|
libresilient-test:
|
2021-11-08 18:29:53 +00:00
|
|
|
image: node:17.0
|
2021-08-24 23:29:12 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2021-08-25 02:24:41 +00:00
|
|
|
- npm ci --include=dev
|
2021-09-01 02:38:40 +00:00
|
|
|
- npx jest --collectCoverage --coverageDirectory="./coverage" --coverage --ci --reporters=default --reporters=jest-junit
|
2021-08-31 23:39:36 +00:00
|
|
|
coverage: "/All files[^|]*\\|[^|]*\\s+([\\d\\.]+)/"
|
2021-08-31 23:04:01 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit:
|
2021-08-31 23:39:36 +00:00
|
|
|
- junit.xml
|
2022-05-15 18:50:07 +00:00
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: coverage/cobertura-coverage.xml
|
2021-09-01 01:54:30 +00:00
|
|
|
tags:
|
2021-11-08 18:02:29 +00:00
|
|
|
- docker
|
|
|
|
- linux
|
2022-12-11 21:57:39 +00:00
|
|
|
|
|
|
|
lrcli-test:
|
2022-12-11 21:59:22 +00:00
|
|
|
image: denoland/deno:1.28.3
|
2022-12-11 21:57:39 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- deno test --quiet --allow-read --import-map=__denotests__/importmap.json __denotests__/
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- linux
|
2021-09-01 02:38:40 +00:00
|
|
|
|
2021-08-31 23:39:36 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2021-09-01 02:38:40 +00:00
|
|
|
|
2021-08-31 23:39:36 +00:00
|
|
|
sast:
|
|
|
|
stage: test
|
2021-09-01 01:54:30 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- linux
|
2021-09-01 02:38:40 +00:00
|
|
|
|
2021-08-31 23:39:36 +00:00
|
|
|
include:
|
|
|
|
- template: Security/SAST.gitlab-ci.yml
|