From e33f24dc6c61519fcaa9a16ab56b4d0a904b11ff Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 08:53:39 +0200 Subject: [PATCH 01/26] feat: adding the config file for ci --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..519ca46 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,7 @@ +version: 2.1 +jobs: + build: + + steps: + - checkout + - run: echo "Hello World" \ No newline at end of file From 24d19a10bfbda9d2fb72a1d20017e3f83824892a Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 09:02:38 +0200 Subject: [PATCH 02/26] feat: correct config --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 519ca46..7bccfd8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,7 @@ version: 2.1 jobs: build: + - image: alpine:latest steps: - checkout From 884447db070be97c35500ffd5b152c55562570c1 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 09:06:02 +0200 Subject: [PATCH 03/26] fix: correction to config --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7bccfd8..1bedc5a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,9 @@ version: 2.1 jobs: build: - - image: alpine:latest - + docker: + - image: alpine:latest + steps: - checkout - run: echo "Hello World" \ No newline at end of file From b73c63c4558b2d8c5456d3818a1297bdbb38f9be Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 09:28:08 +0200 Subject: [PATCH 04/26] feat: add key version --- .circleci/config.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1bedc5a..b844a87 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,4 +6,13 @@ jobs: steps: - checkout - - run: echo "Hello World" \ No newline at end of file + - run: echo "Hello World" + + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - npm-v1-dependencies- + - run: bundle install --path vendor/bundle + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + paths: vendor/bundle From 410a5dedb8d13136f7ba71c604f8fc00ca9cb24e Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 09:31:25 +0200 Subject: [PATCH 05/26] feat: adding more commands --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b844a87..90f0fb6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,6 +12,7 @@ jobs: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies- + - run: yarn install - run: bundle install --path vendor/bundle - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} From c967c859740c2af8e6d9bbccd47466527ec1c114 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 09:33:12 +0200 Subject: [PATCH 06/26] feat: change docker image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 90f0fb6..34dd252 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: build: docker: - - image: alpine:latest + - image: cimg/node steps: - checkout From b7da79c90b6ded61f5c3464a2529cc77dbf8bd12 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 10:21:00 +0200 Subject: [PATCH 07/26] feat: adding docker credentials --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 34dd252..1b9ac0e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,9 @@ jobs: build: docker: - image: cimg/node + auth: + username: Anatole-DC + password: $DOCKER_PASSWORD steps: - checkout From 95227db0164c0b829c84091d7300d7e86c48f333 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:28:18 +0200 Subject: [PATCH 08/26] Updated config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1b9ac0e..2995c06 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,9 +3,9 @@ jobs: build: docker: - image: cimg/node - auth: - username: Anatole-DC - password: $DOCKER_PASSWORD + auth: + username: Anatole-DC + password: $DOCKER_PASSWORD steps: - checkout From 4faa692bb14d6a8b13f34a318aa1f5075b974711 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:31:58 +0200 Subject: [PATCH 09/26] Updated config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2995c06..00053e2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: docker: - image: cimg/node auth: - username: Anatole-DC + username: adechauveron password: $DOCKER_PASSWORD steps: From 957ff6472c348fcb7774ccb8a6395ab5d5a485d6 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:35:36 +0200 Subject: [PATCH 10/26] Updated config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 00053e2..9d4ccad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: build: docker: - - image: cimg/node + - image: cimg/node@16.10 auth: username: adechauveron password: $DOCKER_PASSWORD From efd5113c2cef6d5b080a3741d5c06527be1056cc Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:37:11 +0200 Subject: [PATCH 11/26] Updated config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9d4ccad..f57ced7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: build: docker: - - image: cimg/node@16.10 + - image: cimg/node:16.10.0 auth: username: adechauveron password: $DOCKER_PASSWORD From 0e05801cf1ff76896f5c3c54f5b58984483824ef Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Mon, 11 Oct 2021 10:41:08 +0200 Subject: [PATCH 12/26] feat: correct config --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1b9ac0e..e43f82f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,20 +3,23 @@ jobs: build: docker: - image: cimg/node - auth: - username: Anatole-DC - password: $DOCKER_PASSWORD + auth: + username: Anatole-DC + password: $DOCKER_PASSWORD steps: - checkout - - run: echo "Hello World" + - run: + name: "Hello World" + command: echo "Hello World" - restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies- - - run: yarn install - - run: bundle install --path vendor/bundle + - run: + name: "yarn install" + command: yarn install - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} paths: vendor/bundle From d19baf701e96010e10697b903a65b89a381dfd71 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:42:49 +0200 Subject: [PATCH 13/26] Updated config.yml --- .circleci/config.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ffccd31..5ebcdc6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,15 +2,9 @@ version: 2.1 jobs: build: docker: -<<<<<<< HEAD - - image: cimg/node - auth: - username: Anatole-DC -======= - image: cimg/node:16.10.0 auth: username: adechauveron ->>>>>>> efd5113c2cef6d5b080a3741d5c06527be1056cc password: $DOCKER_PASSWORD steps: From 17447c03d93d37ed909b5290548fe0900c855847 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:00:55 +0200 Subject: [PATCH 14/26] Updated config.yml --- .circleci/config.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5ebcdc6..21cccf2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,4 +22,19 @@ jobs: command: yarn install - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - paths: vendor/bundle + paths: [vendor/bundle] + + lint: + docker: + - image: cimg/node:16.10.0 + auth: + username: adechauveron + password: $DOCKER_PASSWORD + steps: + - run: + name: "lint step" + command: yarn lint | yarn format:check + - run: + name: "yarn test" + command: yarn test + From 621d8d9fce56a24a39a1954a912b42fcb8e7c079 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:03:34 +0200 Subject: [PATCH 15/26] Updated config.yml --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21cccf2..2641444 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,4 +37,12 @@ jobs: - run: name: "yarn test" command: yarn test - + +workflows: + version: 2 + build_and_test: + jobs: + - build + - lint: + requires: + - build From 6e44cfc4f5298fd1cdbc1a999236e14e349efcde Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:07:51 +0200 Subject: [PATCH 16/26] Updated config.yml --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2641444..7887506 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,6 +31,10 @@ jobs: username: adechauveron password: $DOCKER_PASSWORD steps: + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - npm-v1-dependencies- - run: name: "lint step" command: yarn lint | yarn format:check From 68735923595c682fb87b11b4ca204815527f062b Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:11:22 +0200 Subject: [PATCH 17/26] Updated config.yml --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7887506..fb6cbb1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,8 @@ jobs: command: yarn install - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - paths: [vendor/bundle] + paths: + - node_modules lint: docker: @@ -31,6 +32,7 @@ jobs: username: adechauveron password: $DOCKER_PASSWORD steps: + - checkout - restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} From 363c792c4a42686e8a6b648a3ddaf6facc453eb4 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:12:57 +0200 Subject: [PATCH 18/26] Updated config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fb6cbb1..61a3716 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,13 +15,13 @@ jobs: - restore_cache: keys: - - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - npm-v1-dependencies- + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies- - run: name: "yarn install" command: yarn install - save_cache: - key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + key: npm-v2-dependencies-{{ checksum "yarn.lock" }} paths: - node_modules From 635e24a4146e89a42b47d0837e4e35c94c927476 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:18:22 +0200 Subject: [PATCH 19/26] Updated config.yml --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 61a3716..41757f9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,7 +39,9 @@ jobs: - npm-v1-dependencies- - run: name: "lint step" - command: yarn lint | yarn format:check + command: | + yarn lint + yarn format:check - run: name: "yarn test" command: yarn test From 2d827ee12585442c52f247803af2198b59889635 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:20:35 +0200 Subject: [PATCH 20/26] Updated config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 41757f9..6f55f4a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,8 +35,8 @@ jobs: - checkout - restore_cache: keys: - - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - npm-v1-dependencies- + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies- - run: name: "lint step" command: | From 0ed4ffefc93036afd24cf3676a93c841d8474027 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:29:53 +0200 Subject: [PATCH 21/26] Updated config.yml --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f55f4a..c5357d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,6 +45,19 @@ jobs: - run: name: "yarn test" command: yarn test + + postgres: + docker: + - image: circleci/postgres:9.6.2-alpine + auth: + username: adechauveron + password: $DOCKER_PASSWORD + environment: + POSTGRES_USER: postgres + POSTGRES_DB: postgres + POSTGRES_PASSWORD: postgres + steps: + - checkout workflows: version: 2 @@ -54,3 +67,6 @@ workflows: - lint: requires: - build + - postgres: + requires: + - build From 72f6632c92eedbab9532d14e68850485061c93a8 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:38:02 +0200 Subject: [PATCH 22/26] Updated config.yml --- .circleci/config.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5357d7..573ce48 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,6 +58,20 @@ jobs: POSTGRES_PASSWORD: postgres steps: - checkout + + end_to_end_tests: + docker: + - image: cimg/node:16.10.0 + auth: + username: adechauveron + password: $DOCKER_PASSWORD + steps: + - checkout + - run: + name: "yarn test" + command: yarn test:e2e + environment: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres workflows: version: 2 @@ -70,3 +84,7 @@ workflows: - postgres: requires: - build + - end_to_end_tests: + requires: + - lint + - postgres From e4bdf9bb8765b4f17f5374e1f9ac67d8a19336f4 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:42:08 +0200 Subject: [PATCH 23/26] Updated config.yml --- .circleci/config.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 573ce48..eccc8c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,9 +45,13 @@ jobs: - run: name: "yarn test" command: yarn test - - postgres: + + end_to_end_tests: docker: + - image: cimg/node:16.10.0 + auth: + username: adechauveron + password: $DOCKER_PASSWORD - image: circleci/postgres:9.6.2-alpine auth: username: adechauveron @@ -58,15 +62,10 @@ jobs: POSTGRES_PASSWORD: postgres steps: - checkout - - end_to_end_tests: - docker: - - image: cimg/node:16.10.0 - auth: - username: adechauveron - password: $DOCKER_PASSWORD - steps: - - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies- - run: name: "yarn test" command: yarn test:e2e @@ -81,10 +80,6 @@ workflows: - lint: requires: - build - - postgres: - requires: - - build - end_to_end_tests: requires: - - lint - - postgres + - build From 2c96854d9db09110bfa86e547d16d62d203a396e Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:48:55 +0200 Subject: [PATCH 24/26] Updated config.yml --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index eccc8c0..55c5b6f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,6 +72,18 @@ jobs: environment: DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres + documentation_artifact: + docker: + - image: cimg/node:16.10.0 + auth: + username: adechauveron + password: $DOCKER_PASSWORD + steps: + - checkout + - run: + name: "yarn doc build" + command: yarn doc:build + workflows: version: 2 build_and_test: @@ -83,3 +95,7 @@ workflows: - end_to_end_tests: requires: - build + - documentation_artifact: + requires: + - end_to_end_tests + - lint From 818dab5b08b3a3f02514d6a693d548626946b757 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:51:07 +0200 Subject: [PATCH 25/26] Updated config.yml --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55c5b6f..d8f1d55 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -80,6 +80,10 @@ jobs: password: $DOCKER_PASSWORD steps: - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies- - run: name: "yarn doc build" command: yarn doc:build From bdd8f9fd3ec9e691c174a64a23ed856c14568abf Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:59:49 +0200 Subject: [PATCH 26/26] Updated config.yml --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d8f1d55..e7e4b0e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -86,7 +86,11 @@ jobs: - npm-v2-dependencies- - run: name: "yarn doc build" - command: yarn doc:build + command: | + yarn doc:build + yarn add save-artifact-to-github + - store_artifacts: + path: docs workflows: version: 2