-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. | ||
# See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
|
||
orbs: | ||
# The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize | ||
# Orbs reduce the amount of configuration required for common tasks. | ||
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node | ||
node: circleci/node@4.7 | ||
|
||
jobs: | ||
# Below is the definition of your job to build and test your app, you can rename and customize it as you want. | ||
build-and-test: | ||
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/ | ||
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. | ||
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node | ||
docker: | ||
- image: cimg/node:16.10 | ||
# Then run your tests! | ||
# CircleCI will report the results back to your VCS provider. | ||
steps: | ||
# Checkout the code as the first step. | ||
- checkout | ||
# Next, the node orb's install-packages step will install the dependencies from a package.json. | ||
# The orb install-packages step will also automatically cache them for faster future runs. | ||
- node/install-packages: | ||
# If you are using yarn, change the line below from "npm" to "yarn" | ||
pkg-manager: yarn | ||
- run: | ||
name: Run Build | ||
command: yarn run build | ||
- run: | ||
name: Run tests | ||
command: yarn run test | ||
- run: | ||
name: "Build and test complete" | ||
command: echo Build and test complete! | ||
|
||
workflows: | ||
build: | ||
jobs: | ||
- build-and-test: | ||
filters: | ||
branches: | ||
only: | ||
- develop | ||
# 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. | ||
# - node/test |