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 version: 2.1
jobs: jobs:
install: install:
docker: docker:
@ -8,8 +6,6 @@ jobs:
auth: auth:
username: anthonyjhoiro username: anthonyjhoiro
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -25,7 +21,42 @@ jobs:
paths: paths:
- node_modules - 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: workflows:
build-workflow: build-workflow:
jobs: jobs:
- install - install
- lint
Loading…
Cancel
Save