Skip to content

Commit

Permalink
fix: add checks (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
doriaviram authored Sep 23, 2020
1 parent 6a44551 commit 0b0b4a9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
41 changes: 38 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: 2
jobs:
build:
deploy:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- run:
name: release
command: ./scripts/deploy.sh
tests:
docker:
- image: 'circleci/node:latest'
steps:
Expand All @@ -9,5 +17,32 @@ jobs:
name: install
command: npm install
- run:
name: release
command: npm run semantic-release
name: checks script
command: ./scripts/checks.sh
integration-test:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- run:
name: install
command: npm install
# TODO: Add IT
workflows:
deploy:
jobs:
- deploy:
filters:
branches:
only: master
- tests:
filters:
branches:
ignore: master
- integration-test:
requires:
- tests
filters:
branches:
ignore: master
version: 2
1 change: 1 addition & 0 deletions scripts/checks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e

npm run ts
npm run prettier:check
npm run lint:fix
Expand Down
6 changes: 6 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e

npm i
npm run build
npm run semantic-release

0 comments on commit 0b0b4a9

Please sign in to comment.