From 22a22540573ebf3bc8948492926d14f3eed77b82 Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Wed, 16 Oct 2024 20:35:42 +0200 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3dbbe202..eae64c17 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,18 +1,23 @@ version: 2.1 orbs: - node: circleci/node@5.0.0 + node: circleci/node@5.2.0 + +defaults: &defaults + # put here anything which is common between all jobs + # we define default work dir, however almost every job redefine it + working_directory: ~/workspace jobs: - check_lint: - working_directory: ~/workspace + check_lint: + <<: *defaults docker: - image: 'cimg/base:stable' steps: - checkout - node/install: install-yarn: true - node-version: '16.20.2' + node-version: '20.11.1' - run: node --version - restore_cache: keys: @@ -33,8 +38,8 @@ jobs: name: Run Lint checks command: bin/check_lint.sh - test_unit: - working_directory: ~/workspace + test_unit: + <<: *defaults docker: - image: 'cimg/base:stable' - image: mysql:5.7 @@ -45,7 +50,7 @@ jobs: - checkout - node/install: install-yarn: true - node-version: '16.20.2' + node-version: '20.11.1' - run: node --version - restore_cache: keys: @@ -69,8 +74,8 @@ jobs: name: Run tests and checks command: bin/test_unit.sh - test_e2e: - working_directory: ~/workspace + test_e2e: + <<: *defaults docker: - image: 'cimg/base:stable' - image: mysql:5.7 @@ -81,7 +86,7 @@ jobs: - checkout - node/install: install-yarn: true - node-version: '16.20.2' + node-version: '20.11.1' - run: node --version - restore_cache: keys: @@ -106,13 +111,14 @@ jobs: command: bin/test_e2e.sh build: + <<: *defaults docker: - image: 'cimg/base:stable' steps: - checkout - node/install: install-yarn: true - node-version: '16.20.2' + node-version: '20.11.1' - run: node --version - setup_remote_docker - run: @@ -120,13 +126,14 @@ jobs: command: RELEASE=$CIRCLE_TAG bin/build-docker.sh build_old: + <<: *defaults docker: - image: 'cimg/base:stable' steps: - checkout - node/install: install-yarn: true - node-version: '16.20.2' + node-version: '20.11.1' - run: node --version - setup_remote_docker - run: