Updated circleci config.

This commit is contained in:
Jeremy Nusser 2022-11-02 18:09:10 -05:00
parent a5c77571f9
commit 34073352ab
1 changed files with 22 additions and 12 deletions

View File

@ -1,16 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs: jobs:
build_and_test: # this can be any name you choose say-hello:
executor: node/default # use the default executor defined within the orb # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps: steps:
- checkout - checkout
- node/install-packages:
pkg-manager: yarn
- run: - run:
command: yarn test name: "Say hello"
name: Run tests command: "echo Hello, World!"
- run:
command: yarn build # Invoke jobs via workflows
name: Build app # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
- persist_to_workspace: workflows:
root: ~/ say-hello-workflow:
paths: . jobs:
- say-hello