Skip to content

Commit

Permalink
update CircleCI to validate build and package on every push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
floydpink committed Feb 19, 2020
1 parent e965ce7 commit 687e8f3
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 59 deletions.
28 changes: 27 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
version: 2.1
jobs:
build:
docker:
- image: jsii/superchain
steps:
- run:
name: fix ssh permissions
command: chmod 600 /root/.ssh/config
- checkout
- run:
name: install
command: npm install
- run:
name: test
command: npm run build && npm test
- run:
name: package
command: npm run build && npm run package

deploy:
docker:
- image: jsii/superchain
steps:
Expand Down Expand Up @@ -32,9 +50,17 @@ jobs:
workflows:
version: 2
build_and_deploy:
validate_build:
jobs:
- build:
filters:
tags:
ignore: /.*/
branches:
only: master
build_and_deploy:
jobs:
- deploy:
filters:
tags:
only: /^v.*/
Expand Down
85 changes: 27 additions & 58 deletions package-lock.json

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

0 comments on commit 687e8f3

Please sign in to comment.