From bb5c2a1c84d52af48e7f8c7fa6f58e88e0e2c162 Mon Sep 17 00:00:00 2001
From: Igor Markin <igor.markin@vereign.com>
Date: Mon, 17 May 2021 12:49:47 +0000
Subject: [PATCH] Adds .gitlab-ci.yml

---
 .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..41e361b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+image: node:12.22-alpine
+include:
+  - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
+
+stages:
+  - install
+  - test
+
+install:
+  stage: install
+  tags: 
+    - amd64-docker
+  script:
+    - apk add --no-cache git openssh
+    - git config --global url."https://gitlab-ci-token:$CI_JOB_TOKEN@code.vereign.com/".insteadOf "git@code.vereign.com:"
+    - echo '[http "https://code.vereign.com"]' >> $HOME/.gitconfig
+    - echo "  sslVerify = false"  >> $HOME/.gitconfig
+    - yarn install --frozen-lockfile
+  cache:
+    paths:
+      - node_modules/
+  artifacts:
+    expire_in: 1 days
+    when: on_success
+    paths:
+      - node_modules/
+
+test:
+  stage: test
+  tags: 
+    - amd64-docker
+  dependencies:
+    - install
+  script:
+    - yarn test
-- 
GitLab