From f3b705f5e1440b45d6fe3f14909a94e2f490d004 Mon Sep 17 00:00:00 2001 From: James Bowes Date: Fri, 5 Jan 2024 13:37:21 -0400 Subject: [PATCH] feat: run the unit-style tests in parallel (#4985) Run go, node (jest) and tap tests all in their own jobs. This will allow us to more easily upload test results, or parallelize the tap tests (which take the most time). --- .circleci/config.yml | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ccd814cbf2..d6e0382a78 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -337,7 +337,27 @@ workflows: branches: ignore: master - - test-code: + - test-node: + context: + - nodejs-install + - team_hammerhead-cli + requires: + - prepare-build + filters: + branches: + ignore: master + + - test-go: + context: + - nodejs-install + - team_hammerhead-cli + requires: + - prepare-build + filters: + branches: + ignore: master + + - test-legacy-tap: context: - nodejs-install - team_hammerhead-cli @@ -786,20 +806,30 @@ jobs: monitor-on-build: true severity-threshold: high - test-code: + test-node: executor: docker-amd64 steps: - prepare-workspace - - run: - name: Configuring artifact - command: node ./bin/snyk config set "api=${TEST_SNYK_TOKEN}" # many tests require the token to be in the config - run: name: Running TS unit tests command: npm run test:unit + + test-go: + executor: docker-amd64 + steps: + - prepare-workspace - run: name: Running Go unit tests working_directory: ./cliv2 command: make openboxtest + + test-legacy-tap: + executor: docker-amd64 + steps: + - prepare-workspace + - run: + name: Configuring artifact + command: node ./bin/snyk config set "api=${TEST_SNYK_TOKEN}" # many tests require the token to be in the config - run: name: Running Tap tests command: