Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit bc62aff

Browse files
committed
🧾 Circle CI configuration changes
1 parent 6218944 commit bc62aff

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

‎.circleci/config.yml‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ orbs:
1111

1212
jobs:
1313
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
14-
build-and-test:
14+
build-test-deploy:
1515
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
1616
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
1717
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node
@@ -38,18 +38,36 @@ jobs:
3838
name: Netlify Deploy
3939
command: yarn deploy
4040

41+
build-and-test:
42+
docker:
43+
- image: cimg/node:15.1
44+
steps:
45+
- checkout
46+
- node/install-packages:
47+
pkg-manager: yarn
48+
- run:
49+
name: Compile Project
50+
command: yarn build
51+
- run:
52+
name: Run Tests
53+
command: yarn test
54+
4155
workflows:
4256
# Below is the definition of your workflow.
4357
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above.
4458
# CircleCI will run this workflow on every commit.
4559
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
4660
version: 2
47-
build-test-deploy:
61+
build-test:
4862
jobs:
4963
- build-and-test:
64+
65+
build-test-deploy:
66+
jobs:
67+
- build-test-deploy:
5068
filters:
5169
branches:
52-
only:
70+
only:
5371
- master
5472

5573
# For running simple node tests, you could optionally use the node/test job from the orb to replicate and replace the job above in fewer lines.

0 commit comments

Comments
 (0)