Skip to content

Commit

Permalink
modified again some code in circleci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nil2022 committed Jan 11, 2024
1 parent f432e4a commit ee8ebd3
Showing 1 changed file with 34 additions and 37 deletions.
71 changes: 34 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,40 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1
orbs:
node: circleci/[email protected]

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/configuration-reference/#jobs
jobs:
check-node-version:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/configuration-reference/#executor-job
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/configuration-reference/#steps
build_and_test:
executor: node/default
steps:
- checkout
- run:
# Check Node version
name: "Check Node.js version"
command: "node --version"

- checkout
- node/install-packages:
pkg-manager: npm
- run:
command: node -v
name: Check Node.js Version
# - run:
# command: yarn build
# name: Build app
# - persist_to_workspace:
# root: ~/project
# paths:
# - .

# deploy: # this can be any name you choose
# executor: heroku/default
# steps:
# - attach_workspace:
# at: ~/project
# - heroku/deploy-via-git:
# force: true # force push when pushing to the heroku remote, see: https://devcenter.heroku.com/articles/git

workflows:
check-node-version-workflow:
test_my_app:
jobs:
- check-node-version
# # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# # See: https://circleci.com/docs/configuration-reference/#executor-job
# docker:
# - image: cimg/base:stable
# # Add steps to the job
# # See: https://circleci.com/docs/configuration-reference/#steps
# steps:
# - checkout
# - run:
# name: "Say hello"
# command: "echo Hello, World!"

# # Orchestrate jobs using workflows
# # See: https://circleci.com/docs/configuration-reference/#workflows
# workflows:
# say-hello-workflow:
# jobs:
# - say-hello
- build_and_test
# - deploy:
# requires:
# - build_and_test # only deploy if the build_and_test job has completed
# filters:
# branches:
# only: main # only deploy when on main

0 comments on commit ee8ebd3

Please sign in to comment.