Browse Source

Updated config.yml

pull/1/head
Anthony Quéré 5 years ago
parent
commit
35a0406cd4
  1. 39
      .circleci/config.yml

39
.circleci/config.yml

@ -1,6 +1,4 @@
version: 2.1
jobs:
install:
docker:
@ -8,8 +6,6 @@ jobs:
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
@ -25,7 +21,42 @@ jobs:
paths:
- node_modules
lint:
docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
steps:
- restore_cache:
keys:
- npm-v1-lint-{{ checksum "yarn.lock" }}
- run:
name: Check files format
command: yarn format:check
- run:
name: Lint files
command: yarn lint
- save_cache:
name: Save linted files
key: npm-v1-lint-{{ checksum "yarn.lock" }}
paths:
- src
test-ci:
docker:
- image: cimg/node:16.10.0
auth:
username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD
steps:
- run:
name: Unit Tests
command: yarn test:ci
workflows:
build-workflow:
jobs:
- install
- lint
Loading…
Cancel
Save