Skip to content
Snippets Groups Projects

Add CI tests

Merged Igor Markin requested to merge add-ci-tests into master
1 file
+ 35
0
Compare changes
  • Side-by-side
  • Inline
.gitlab-ci.yml 0 → 100644
+ 35
0
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
Loading