Skip to content

Commit a6d400d

Browse files
author
Andy O'Neill
committed
Revert "ci: Simplify with node orb"
This reverts commit ac0f98c.
1 parent ac0f98c commit a6d400d

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

.circleci/config.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,20 @@ aliases:
77
- master
88
- develop
99
- /^hotfix\//
10-
- &node-version 16.18.1 # Consider switching to lts when scratch-audio supports that version
10+
11+
executors:
12+
default-executor:
13+
docker:
14+
- image: cimg/node:16.18.1 # Consider switching to LTS when scratch-audio supports that version
15+
working_directory: ~/project
16+
resource_class: medium
1117

1218
commands:
19+
test:
20+
steps:
21+
- run:
22+
name: Test
23+
command: npm run test
1324
setup_deploy:
1425
steps:
1526
- run:
@@ -42,33 +53,39 @@ commands:
4253
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
4354
4455
jobs:
45-
deploy:
46-
executor:
47-
name: node/default
48-
tag: *node-version
56+
build-and-test:
57+
executor: default-executor
4958
steps:
5059
- checkout
5160
- node/install-packages
61+
- test
62+
- persist_to_workspace:
63+
root: ~/project
64+
paths:
65+
- .
66+
deploy:
67+
executor: default-executor
68+
steps:
69+
- attach_workspace:
70+
at: ~/project
5271
- setup_deploy
5372
- deploy
5473

5574
workflows:
5675
build-and-test-workflow:
5776
jobs:
58-
- node/test:
59-
version: *node-version
77+
- build-and-test:
6078
filters:
6179
branches:
6280
ignore: *release-branches
6381
deploy-workflow:
6482
jobs:
65-
- node/test:
66-
version: *node-version
83+
- build-and-test:
6784
filters:
6885
branches:
6986
only: *release-branches
7087
- deploy:
7188
context:
7289
- scratch-npm-creds
7390
requires:
74-
- node/test
91+
- build-and-test

0 commit comments

Comments
 (0)