test ci --check
This commit is contained in:
parent
39fa7da38a
commit
23ec0471e0
|
@ -7,15 +7,15 @@ stages:
|
||||||
# TEST STAGE #
|
# TEST STAGE #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
unit-test:
|
# unit-test:
|
||||||
stage: test
|
# stage: test
|
||||||
image: node:18-alpine3.16
|
# image: node:18-alpine3.16
|
||||||
script:
|
# script:
|
||||||
- npm install
|
# - npm install
|
||||||
- npm run test:unit:ci
|
# - npm run test:unit:ci
|
||||||
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
|
||||||
|
|
|
@ -22,5 +22,8 @@ RUN npx prisma generate
|
||||||
# Create a "dist" folder
|
# Create a "dist" folder
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
# Run unit tests
|
||||||
|
RUN npm run test:unit:ci
|
||||||
|
|
||||||
# Start the server
|
# Start the server
|
||||||
CMD [ "node", "dist/main.js" ]
|
CMD [ "node", "dist/main.js" ]
|
||||||
|
|
Loading…
Reference in New Issue