1 | version: 2
|
2 | jobs:
|
3 | build:
|
4 | working_directory: ~/s
|
5 | docker:
|
6 | - image: circleci/node:stretch
|
7 | steps:
|
8 | - checkout
|
9 | - run:
|
10 | name: 'Install Yarn'
|
11 | command: |
|
12 | curl -o- -L https://yarnpkg.com/install.sh | bash
|
13 | - run:
|
14 | name: 'Install dependencies'
|
15 | command: |
|
16 | yarn install
|
17 | - run:
|
18 | name: 'Fix path to module'
|
19 | command: |
|
20 | sed -i -e "s=squidex-client-manager=../src/index.js=" ~/s/examples/*
|
21 | - run:
|
22 | name: 'Run eslinter'
|
23 | command: |
|
24 | yarn run lint-fix
|
25 | - run:
|
26 | name: 'Run tests'
|
27 | command: |
|
28 | yarn run test
|
29 | - run: echo DONE
|