test ci --check

This commit is contained in:
Gsk54 2023-01-10 11:31:31 +01:00
parent 6ec66bee1e
commit ad4a31645f
1 changed files with 9 additions and 9 deletions

View File

@ -7,15 +7,15 @@ stages:
# TEST STAGE # # TEST STAGE #
############## ##############
unit-test: # unit-test:
stage: test:unit # stage: test
image: node:18-alpine3.16 # image: node:18-alpine3.16
script: # script:
- npm install # - npm install
- npm run test:unit # - npm run test:unit
rules: # rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_MESSAGE =~ /--check/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_MESSAGE =~ /--check/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: always # when: always
integration-test: integration-test:
stage: test stage: test