From a6d400dddb06ad2ca94eb546e0d7b2b59178dbe5 Mon Sep 17 00:00:00 2001 From: Andy O'Neill Date: Mon, 21 Nov 2022 16:53:55 -0500 Subject: [PATCH] Revert "ci: Simplify with node orb" This reverts commit ac0f98c4311e2919a8fef7fbf1a9f450bb513359. --- .circleci/config.yml | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e1951d..1b57473 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,9 +7,20 @@ aliases: - master - develop - /^hotfix\// - - &node-version 16.18.1 # Consider switching to lts when scratch-audio supports that version + +executors: + default-executor: + docker: + - image: cimg/node:16.18.1 # Consider switching to LTS when scratch-audio supports that version + working_directory: ~/project + resource_class: medium commands: + test: + steps: + - run: + name: Test + command: npm run test setup_deploy: steps: - run: @@ -42,28 +53,34 @@ commands: if npm info | grep -q $RELEASE_VERSION; then git tag $RELEASE_VERSION && git push https://${GH_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git $RELEASE_VERSION; fi jobs: - deploy: - executor: - name: node/default - tag: *node-version + build-and-test: + executor: default-executor steps: - checkout - node/install-packages + - test + - persist_to_workspace: + root: ~/project + paths: + - . + deploy: + executor: default-executor + steps: + - attach_workspace: + at: ~/project - setup_deploy - deploy workflows: build-and-test-workflow: jobs: - - node/test: - version: *node-version + - build-and-test: filters: branches: ignore: *release-branches deploy-workflow: jobs: - - node/test: - version: *node-version + - build-and-test: filters: branches: only: *release-branches @@ -71,4 +88,4 @@ workflows: context: - scratch-npm-creds requires: - - node/test + - build-and-test