mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
ci - breakup npm test into parallel processes
This commit is contained in:
parent
69345770fb
commit
828ac9a232
@ -4,13 +4,20 @@ workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- build
|
||||
- test:
|
||||
- prep-deps
|
||||
- test-lint:
|
||||
requires:
|
||||
- build
|
||||
- prep-deps
|
||||
- test-coverage:
|
||||
requires:
|
||||
- prep-deps
|
||||
- test-integration:
|
||||
requires:
|
||||
- prep-deps
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
prep-deps:
|
||||
docker:
|
||||
- image: circleci/node:8-browsers
|
||||
steps:
|
||||
@ -27,7 +34,7 @@ jobs:
|
||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
test:
|
||||
test-lint:
|
||||
docker:
|
||||
- image: circleci/node:8-browsers
|
||||
steps:
|
||||
@ -36,4 +43,24 @@ jobs:
|
||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||
- run:
|
||||
name: Test
|
||||
command: npm test
|
||||
command: npm run lint
|
||||
test-coverage:
|
||||
docker:
|
||||
- image: circleci/node:8-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||
- run:
|
||||
name: test:coverage
|
||||
command: npm run test:coverage
|
||||
test-integration:
|
||||
docker:
|
||||
- image: circleci/node:8-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||
- run:
|
||||
name: test:integration
|
||||
command: npm run test:integration
|
||||
|
Loading…
Reference in New Issue
Block a user