Merge pull request #604 from nodar-chkuaselidze/ci-updates
pkg: update ci
This commit is contained in:
commit
625edb9579
@ -1,9 +1,12 @@
|
|||||||
|
defaults: &defaults
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:10.2
|
||||||
|
|
||||||
version: 2.0
|
version: 2.0
|
||||||
jobs:
|
jobs:
|
||||||
install:
|
install:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: circleci/node:10.2
|
|
||||||
working_directory: ~/repo
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
@ -16,17 +19,15 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths: .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: circleci/node:10.2
|
|
||||||
working_directory: ~/repo
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- attach_workspace:
|
||||||
- restore_cache:
|
at: .
|
||||||
keys:
|
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
|
||||||
# fallback to using the latest cache if no exact match is found
|
|
||||||
- v1-dependencies-
|
|
||||||
- run:
|
- run:
|
||||||
name: Tests with coverage
|
name: Tests with coverage
|
||||||
command: npm run test-ci
|
command: npm run test-ci
|
||||||
@ -38,17 +39,10 @@ jobs:
|
|||||||
command: ./node_modules/.bin/codecov
|
command: ./node_modules/.bin/codecov
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: circleci/node:10.2
|
|
||||||
|
|
||||||
working_directory: ~/repo
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- attach_workspace:
|
||||||
- restore_cache:
|
at: .
|
||||||
keys:
|
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
|
||||||
# fallback to using the latest cache if no exact match is found
|
|
||||||
- v1-dependencies-
|
|
||||||
- run:
|
- run:
|
||||||
name: Lint
|
name: Lint
|
||||||
command: npm run lint-ci
|
command: npm run lint-ci
|
||||||
@ -64,5 +58,3 @@ workflows:
|
|||||||
- test:
|
- test:
|
||||||
requires:
|
requires:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user