From 019edbdeb3a9ae18e98e214c86f88e43e0d39cbb Mon Sep 17 00:00:00 2001 From: Evaldo Felipe Date: Wed, 4 Oct 2023 14:45:40 -0300 Subject: [PATCH] Update test Signed-off-by: Evaldo Felipe --- .circleci/config.yml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 18f505db4..ca08af364 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,21 +26,38 @@ jobs: resource_class: medium+ parallelism: 10 steps: - - restore_cache: - key: relayer-cache-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: Install Prereqs + command: sudo apt-get update && sudo apt-get install -y rsync libudev-dev libusb-1.0-0-dev yarn + - run: + name: Install Dependencies + command: yarn install + - run: + name: Run build + command: yarn build - run: name: Run tests command: | - pwd - cd test/ circleci tests glob "test/**/*.ts" | circleci tests split > /tmp/test-files - yarn test --bail $(cat /tmp/test-files) + cd /tmp/test-files && ls -la + yarn test --bail lint: docker: - image: cimg/node:16.18.0 working_directory: ~/relayer-v2 resource_class: medium+ steps: + - checkout + - run: + name: Install Prereqs + command: sudo apt-get update && sudo apt-get install -y rsync libudev-dev libusb-1.0-0-dev yarn + - run: + name: Install Dependencies + command: yarn install + - run: + name: Run build + command: yarn build - restore_cache: key: relayer-cache-{{ .Environment.CIRCLE_SHA1 }} - run: @@ -50,10 +67,5 @@ workflows: version: 2.1 build_and_test: jobs: - - build - - lint: - requires: - - build - - test: - requires: - - build + - test + - lint