Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #23

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 35 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,41 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
# CircleCI workflow config file
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:
runs-on: ubuntu-latest

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:
# - .

- name: Use Node.js
uses: actions/setup-node@v4

- name: Check Node.js version
run: |
node --version

workflows:
check-node-version-workflow:
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!"
# 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

# # Orchestrate jobs using workflows
# # See: https://circleci.com/docs/configuration-reference/#workflows
# workflows:
# say-hello-workflow:
# jobs:
# - say-hello
workflows:
test_my_app:
jobs:
- 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