diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..41e361b645805afacc4afd4c3d39a6a3b626692a --- /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