Add .circleci/config.yml

This commit is contained in:
fallingicarus 2021-11-21 03:52:50 -06:00
parent 8cb249d508
commit 0e1cf3c5db

View file

@ -2,25 +2,24 @@
# See: https://circleci.com/docs/2.0/configuration-reference # See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1 version: 2.1
# Define a job to be invoked later in a workflow. # 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/configuration-reference/#jobs # See: https://circleci.com/docs/2.0/orb-intro/
jobs: orbs:
say-hello: node: circleci/node@4.1
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor # See the orb's test job here: https://circleci.com/developer/orbs/orb/circleci/node#jobs-test
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"
# Invoke jobs via workflows # Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows: workflows:
say-hello-workflow: 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: jobs:
- say-hello - node/test:
matrix:
parameters:
version: ["15.1", "lts", "12.21"]
# For more information about matrix testing see the detailed blog post:
# https://circleci.com/blog/circleci-matrix-jobs/
# or the configuration reference:
# https://circleci.com/docs/2.0/configuration-reference/?section=reference#matrix-requires-version-21