Browse Source

Merge pull request #1 from Anatole-DC/add_ci_seed_file

Initializing ci
pull/2/head
Anatole De Chauveron 4 years ago
committed by GitHub
parent
commit
e3e601cdc0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 49
      .circleci/config.yml

49
.circleci/config.yml

@ -0,0 +1,49 @@
version: 2
jobs:
build: &shared-config
docker:
- image: circleci/node:lts-fermium
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-v1
- dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}-v1
lint:
<<: *shared-config
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run: yarn lint
- run: yarn format:check
back-test-unit:
<<: *shared-config
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run:
command: yarn test
environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer
workflows:
version: 2
build-test-and-lint:
jobs:
- build
- lint:
requires :
- build
- back-test-unit:
requires:
- build
Loading…
Cancel
Save