|
|
@ -1,12 +1,21 @@ |
|
|
|
|
|
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' |
|
|
version: 2.1 |
|
|
version: 2.1 |
|
|
jobs: |
|
|
|
|
|
build: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run |
|
|
|
|
|
auth: |
|
|
|
|
|
username: mydockerhub-user |
|
|
|
|
|
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout # check out the code in the project directory |
|
|
|
|
|
- run: yarn install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. |
|
|
|
|
|
# See: https://circleci.com/docs/2.0/orb-intro/ |
|
|
|
|
|
orbs: |
|
|
|
|
|
node: circleci/node@4.7 |
|
|
|
|
|
|
|
|
|
|
|
# Invoke jobs via workflows |
|
|
|
|
|
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows |
|
|
|
|
|
workflows: |
|
|
|
|
|
sample: # This is the name of the workflow, feel free to change it to better match your workflow. |
|
|
|
|
|
# Inside the workflow, you define the jobs you want to run. |
|
|
|
|
|
jobs: |
|
|
|
|
|
- node/test: |
|
|
|
|
|
# This is the node version to use for the `cimg/node` tag |
|
|
|
|
|
# Relevant tags can be found on the CircleCI Developer Hub |
|
|
|
|
|
# https://circleci.com/developer/images/image/cimg/node |
|
|
|
|
|
version: '16.10' |
|
|
|
|
|
# If you are using yarn, change the line below from "npm" to "yarn" |
|
|
|
|
|
pkg-manager: npm |