test ci --check
This commit is contained in:
parent
33b9a9e74f
commit
39fa7da38a
|
@ -12,7 +12,7 @@ unit-test:
|
|||
image: node:18-alpine3.16
|
||||
script:
|
||||
- npm install
|
||||
- npm run test:unit
|
||||
- npm run test:unit:ci
|
||||
rules:
|
||||
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_MESSAGE =~ /--check/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
when: always
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"test": "npm run migrate:test && dotenv -e .env.test jest",
|
||||
"test:unit": "jest --testPathPattern 'tests/unit/' --verbose",
|
||||
"test:unit:ci": "jest --testPathPattern 'tests/unit/'",
|
||||
"test:integration": "npm run migrate:test && dotenv -e .env.test -- jest --testPathPattern 'tests/integration/' --verbose",
|
||||
"test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/'",
|
||||
"test:cov": "npm run migrate:test && dotenv -e .env.test -- jest --coverage",
|
||||
|
|
Loading…
Reference in New Issue