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 Oct 22, 2020
1 parent 860f76b commit cca73f2
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: 2
jobs:
test:
unit test:
docker:
# use node:lts
- image: cimg/node:lts
environment:
TZ: "Europe/London"
Expand All @@ -18,33 +17,46 @@ 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 standard
- run:
name: lint
command: npm run lint
release:
docker:
# use node:lts
- image: cimg/node:lts
environment:
TZ: "Europe/London"
- image: cimg/node:lts
environment:
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
- run:
name: install
command: npm install
- run:
name: release
command: |
chmod +x version_plugin
npx semantic-release
- checkout
- run:
name: install
command: npm install
- run:
name: release
command: |
chmod +x version_plugin
npx semantic-release
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

0 comments on commit cca73f2

Please sign in to comment.