Skip to content

Commit

Permalink
Merge 7307e47 into 5fb3597
Browse files Browse the repository at this point in the history
  • Loading branch information
milosbugarinovic committed Dec 11, 2020
2 parents 5fb3597 + 7307e47 commit b6eef54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
34 changes: 9 additions & 25 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,22 @@ agent:
containers:
- name: main
image: 'registry.semaphoreci.com/node:14'

global_job_config:
prologue:
commands:
- checkout
- cache restore

blocks:
- name: Install
task:
jobs:
- name: Checkout
commands:
- npm ci
- cache store
- name: Lint
task:
jobs:
- name: ESLint
commands:
- npm run eslint
- name: prettier
commands:
- npm run prettier
- name: Test
- name: Install-Lint-Test
task:
secrets:
- name: bc-msh-node-env-secret
env_vars:
- name: NODE_ENV
value: test
jobs:
- name: Unit Test
- name: Test
commands:
- checkout
- npm ci
- cache store
- npm run eslint
- npm run prettier
- npm run coverage
- 'npm run coverage:publish'
- name: Build
Expand All @@ -50,6 +32,8 @@ blocks:
jobs:
- name: Build
commands:
- checkout
- cache restore
- npm run build
- npm run semantic-release
skip:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint && npm test"
"pre-commit": "npm run lint"
}
},
"keywords": [],
Expand Down

0 comments on commit b6eef54

Please sign in to comment.