Browse Source

💚 Fix ci

main
Alexandre SOARES 4 years ago
parent
commit
3113607e0a
  1. 33
      .circleci/config.yml

33
.circleci/config.yml

@ -1,29 +1,24 @@
jobs: jobs:
build: build:
docker: docker:
-
auth:
- auth:
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
username: xaela37 username: xaela37
image: "cimg/node:14.15.0" image: "cimg/node:14.15.0"
steps: steps:
- checkout - checkout
-
run: "yarn install"
-
save_cache:
- run: "yarn install"
- save_cache:
key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}"
paths: paths:
- node_modules - node_modules
end_to_end: end_to_end:
docker: docker:
-
auth:
- auth:
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
username: xaela37 username: xaela37
image: "cimg/node:14.15.0" image: "cimg/node:14.15.0"
-
auth:
- auth:
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
username: xaela37 username: xaela37
environment: environment:
@ -33,38 +28,32 @@ jobs:
image: "circleci/postgres:9.6.2-alpine" image: "circleci/postgres:9.6.2-alpine"
steps: steps:
- checkout - checkout
-
restore_cache:
- restore_cache:
keys: keys:
- "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" - "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}"
-
run:
- run:
command: "yarn test:e2e" command: "yarn test:e2e"
environment: environment:
DATABASE_URL: "postgres://pguser:pass@localhost:5432/pgdb" DATABASE_URL: "postgres://pguser:pass@localhost:5432/pgdb"
name: "yarn test" name: "yarn test"
lint: lint:
docker: docker:
-
auth:
- auth:
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
username: xaela37 username: xaela37
image: "cimg/node:14.15.0" image: "cimg/node:14.15.0"
steps: steps:
- checkout - checkout
-
restore_cache:
- restore_cache:
key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}"
-
run:
- run:
command: |- command: |-
yarn lint yarn lint
yarn format:check yarn format:check
name: "step lint" name: "step lint"
test_unit: test_unit:
docker: docker:
-
auth:
- auth:
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
username: xaela37 username: xaela37
image: "cimg/node:14.15.0" image: "cimg/node:14.15.0"

Loading…
Cancel
Save