ndrg13
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
13 deletions
-
.circleci/config.yml
|
|
|
@ -11,16 +11,12 @@ jobs: |
|
|
|
executor: my-executor |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
name: Restore Yarn package cache |
|
|
|
keys: |
|
|
|
- npm-v4-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: Install dependencies |
|
|
|
command: yarn global add node-gyp && yarn install |
|
|
|
- save_cache: |
|
|
|
name: Save Yarn package cache |
|
|
|
key: npm-v4-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
key: npm-v7-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
lint: |
|
|
|
@ -28,9 +24,8 @@ jobs: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
name: Restore Yarn package cache |
|
|
|
keys: |
|
|
|
- npm-v4-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
name: Restore yarn package cache |
|
|
|
key: npm-v7-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: Analyse code with tslint and format with prettier |
|
|
|
command: yarn lint && yarn format:check |
|
|
|
@ -39,9 +34,8 @@ jobs: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
name: Restore Yarn package cache |
|
|
|
keys: |
|
|
|
- npm-v4-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
name: Restore yarn package cache |
|
|
|
key: npm-v6-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: Run test with jest |
|
|
|
command: yarn test:ci |
|
|
|
|