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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
49 additions and
0 deletions
-
.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 |