From 9c10d5b249c8ddf768bb14935af82d91b3652151 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sun, 15 Oct 2023 07:57:37 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 59 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61ebb05..cd22071 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,47 @@ image: node:latest stages: - - build - - test + - build + - test + +merge:build: + stage: build + script: + - echo "Run build project" + - npm install + - npm run build + only: + - merge_requests + artifacts: + paths: + - node_modules + +merge:test: + stage: test + script: + - echo "Run test project" + - npm run test + only: + - merge_requests + artifacts: + paths: + - node_modules build: - stage: build - script: - - npm install - - npm run build - only: - - merge_requests - artifacts: - paths: - - node_modules + stage: build + script: + - echo "Run build project" + - npm install + - npm run build + artifacts: + paths: + - node_modules test: - stage: test - script: - - npm run test - only: - - merge_requests - artifacts: - paths: - - node_modules \ No newline at end of file + stage: test + script: + - echo "Run test project" + - npm run test + artifacts: + paths: + - node_modules \ No newline at end of file