.gitlab-ci.yml 365 Bytes
Newer Older
1
image: kkarczmarczyk/node-yarn:latest
Wietse Kuipers's avatar
Add CI    
Wietse Kuipers committed
2
3

stages:
4
    - build
Wietse Kuipers's avatar
Add CI    
Wietse Kuipers committed
5
6
    - test

7
8
9
10
11
12
13
14
15
16
17
18
cache:
    untracked: true
    key: "$CI_PROJECT_ID"
    paths:
        - node_modules/
        - .yarn

yarn install:
    stage: build
    script:
        - yarn config set cache-folder .yarn
        - yarn install
Wietse Kuipers's avatar
Add CI    
Wietse Kuipers committed
19
20
21
22

jest:
    stage: test
    script:
23
24
        - rm -rf .yarn
        - yarn lint