Skip to content

Commit

Permalink
ci(circle): separate lint job [ch1009]
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Jul 31, 2020
1 parent a1835b0 commit e30b9ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
22 changes: 18 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
jobs:
test:
unit test:
docker:
# use node:lts
- image: cimg/node:lts
environment:
TZ: "Europe/London"
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
Expand All @@ -18,6 +18,18 @@ jobs:
- run:
name: codecov
command: npm run coverage
lint:
docker:
- image: cimg/node:lts
working_directory: ~/repo
steps:
- checkout
- run:
name: install standard
command: npm install
- run:
name: lint
command: npm run lint
release:
docker:
# use node:lts
Expand All @@ -37,12 +49,14 @@ workflows:
version: 2
test_and_release:
jobs:
- test:
- unit test:
context: tymly_global
- lint
- release:
context: tymly_global
requires:
- test
- unit test
- lint
filters:
branches:
only: master
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"scripts": {
"lint": "standard",
"test": "nyc mocha && standard",
"test": "nyc mocha",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"semantic-release": "semantic-release"
},
Expand Down

0 comments on commit e30b9ff

Please sign in to comment.