From 4cabe9d171e169111e1de062d097856176b6aa06 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sat, 14 Oct 2023 13:09:21 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..78ca1fd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: node:latest + +stages: + - build + - test + +before_script: + - npm install + +build: + stage: build + script: + - echo "Run build project" + - npm run build + only: + - merge_requests + +test: + stage: test + script: + - echo "Run test project" + - npm run test + only: + - merge_requests \ No newline at end of file