From 2717aeaddeb99f8c6e39ff17128720ed92c34dc4 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Wed, 24 Apr 2024 11:20:48 +0200 Subject: [PATCH] ci: prod -> production, add optional fmt test --- .drone.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a182703..a405078 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,11 @@ steps: commands: - cargo build --verbose --all - cargo test --verbose --all +- name: test_fmt + image: rust:1.77.2-slim + commands: + - cargo fmt -- --check + failure: ignore - name: deploy image: rust:1.77.2-slim commands: @@ -16,6 +21,10 @@ steps: include: [ promote ] target: include: [ staging ] + depends_on: + - test + - test_fmt + - name: deploy_prod image: rust:1.77.2-slim commands: @@ -24,4 +33,7 @@ steps: event: include: [ promote ] target: - include: [ prod ] + include: [ production ] + depends_on: + - test + - test_fmt