From 7ff86dd86c9f88dfadc8e41105f9d34096040877 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Mon, 17 Oct 2022 17:26:56 -0400 Subject: [PATCH 1/2] CI run on PR CI is now restricted to PR events --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7ffd2d9..32cbd32 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,10 @@ steps: - rustup component add clippy - cargo clippy - cargo test --all + when: + event: + - pull_request + - name: deploy image: rust:latest commands: @@ -44,7 +48,10 @@ steps: - name: test commands: - rustup default stable - - cargo test + - cargo test + when: + event: + - pull_request - name: deploy commands: - rustup default stable -- 2.40.1 From 2fa149662e36249107434a063aa64c7e7a8b1b61 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Mon, 17 Oct 2022 17:29:35 -0400 Subject: [PATCH 2/2] CI is now only triggered on Promote and Pull Request --- .drone.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 32cbd32..798828a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,11 @@ kind: pipeline name: default - +trigger: + event: + include: + - promote + - pull_request steps: - name: test image: rust:latest @@ -36,7 +40,6 @@ steps: - staging - production - --- kind: pipeline name: windows-build @@ -44,6 +47,11 @@ type: exec platform: os: windows arch: amd64 +trigger: + event: + include: + - promote + - pull_request steps: - name: test commands: -- 2.40.1