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

Heroku #5

Merged
merged 12 commits into from
Apr 12, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
circle ci config
  • Loading branch information
komalsingh54 committed Apr 11, 2020
commit 98e501bf8e87f7a71ca870f5c8518736a778ec25
85 changes: 77 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,87 @@
version: 2.1
orbs:
heroku: circleci/heroku@0.0.10

jobs:
build-and-test:

build:
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: npm install
- run: npm test
- run: npm run build
- run: npm install
- run: npm run test
- run: npm run build

test:
executor:
name: node/default
steps:
- checkout
- run: npm install
- run: npm run test

deploy:
executor:
name: node/default
steps:
- checkout
- run: npm install
- run: npm run test
- run: npm run build


syncBranch:
executor:
name: node/default
steps:
- checkout
- run:
name: Sync Downstream
command: yarn rhinodeploy merge -c build:production


workflows:
heroku_deploy:
version: 2

general:
jobs:
- test:
filters:
branches:
ignore:
- master
- develop

deployment:
jobs:
- heroku/deploy-via-git
- build:
filters:
branches:
only:
- master
- develop
- test:
filters:
branches:
only:
- master
- develop
- heroku/deploy-via-git:
requires:
- build
- test
filters:
branches:
only:
- master
- develop
#- syncBranch:
# requires:
# - deploy
# filters:
# branches:
# only:
# - master
# - staging
# - develop
114 changes: 114 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading