Add dependencies to enable parallelism
This commit is contained in:
parent
04c0d66f8d
commit
45f146ed98
1 changed files with 20 additions and 0 deletions
20
.drone.yml
20
.drone.yml
|
@ -16,11 +16,15 @@ steps:
|
|||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
depends_on:
|
||||
- restore-cache
|
||||
|
||||
- name: build
|
||||
image: node
|
||||
commands:
|
||||
- yarn build
|
||||
depends_on:
|
||||
- dependencies
|
||||
|
||||
- name: upload_build_versioned
|
||||
image: plugins/s3
|
||||
|
@ -37,6 +41,8 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- push
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: upload_build_pr
|
||||
image: plugins/s3
|
||||
|
@ -53,6 +59,8 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- pull_request
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: upload_build_master
|
||||
image: plugins/s3
|
||||
|
@ -71,16 +79,22 @@ steps:
|
|||
- push
|
||||
branch:
|
||||
- master
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: test
|
||||
image: node
|
||||
commands:
|
||||
- yarn test:unit
|
||||
depends_on:
|
||||
- dependencies
|
||||
|
||||
- name: coverage
|
||||
image: node
|
||||
commands:
|
||||
- yarn test:unit --coverage
|
||||
depends_on:
|
||||
- dependencies
|
||||
|
||||
- name: upload_coverage
|
||||
image: plugins/s3
|
||||
|
@ -97,6 +111,8 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- push
|
||||
depends_on:
|
||||
- coverage
|
||||
|
||||
- name: upload_coverage_pr
|
||||
image: plugins/s3
|
||||
|
@ -113,6 +129,8 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- pull_request
|
||||
depends_on:
|
||||
- coverage
|
||||
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
|
@ -123,3 +141,5 @@ steps:
|
|||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
depends_on:
|
||||
- dependencies
|
||||
|
|
Loading…
Reference in a new issue