ci: prod -> production, add optional fmt test
This commit is contained in:
parent
9ea46e0398
commit
2717aeadde
14
.drone.yml
14
.drone.yml
@ -7,6 +7,11 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
|
- name: test_fmt
|
||||||
|
image: rust:1.77.2-slim
|
||||||
|
commands:
|
||||||
|
- cargo fmt -- --check
|
||||||
|
failure: ignore
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: rust:1.77.2-slim
|
image: rust:1.77.2-slim
|
||||||
commands:
|
commands:
|
||||||
@ -16,6 +21,10 @@ steps:
|
|||||||
include: [ promote ]
|
include: [ promote ]
|
||||||
target:
|
target:
|
||||||
include: [ staging ]
|
include: [ staging ]
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
- test_fmt
|
||||||
|
|
||||||
- name: deploy_prod
|
- name: deploy_prod
|
||||||
image: rust:1.77.2-slim
|
image: rust:1.77.2-slim
|
||||||
commands:
|
commands:
|
||||||
@ -24,4 +33,7 @@ steps:
|
|||||||
event:
|
event:
|
||||||
include: [ promote ]
|
include: [ promote ]
|
||||||
target:
|
target:
|
||||||
include: [ prod ]
|
include: [ production ]
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
- test_fmt
|
||||||
|
Loading…
Reference in New Issue
Block a user