From df947537e45010c579cb63e40088b70c141045a7 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sun, 15 Oct 2023 11:18:14 +0330 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78ca1fd..61ebb05 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,24 +1,26 @@ image: node:latest stages: - - build - - test - -before_script: - - npm install + - build + - test build: - stage: build - script: - - echo "Run build project" - - npm run build - only: - - merge_requests + stage: build + script: + - npm install + - npm run build + only: + - merge_requests + artifacts: + paths: + - node_modules test: - stage: test - script: - - echo "Run test project" - - npm run test - only: - - merge_requests \ No newline at end of file + stage: test + script: + - npm run test + only: + - merge_requests + artifacts: + paths: + - node_modules \ No newline at end of file