ci-restrict (#4)

Reviewed-on: #4
This commit is contained in:
Joe Bellus 2022-10-18 02:12:41 +00:00
parent 9cf41ad6ec
commit e52acf2c11
1 changed files with 18 additions and 3 deletions

View File

@ -1,7 +1,11 @@
kind: pipeline kind: pipeline
name: default name: default
trigger:
event:
include:
- promote
- pull_request
steps: steps:
- name: test - name: test
image: rust:latest image: rust:latest
@ -11,6 +15,10 @@ steps:
- rustup component add clippy - rustup component add clippy
- cargo clippy - cargo clippy
- cargo test --all - cargo test --all
when:
event:
- pull_request
- name: deploy - name: deploy
image: rust:latest image: rust:latest
commands: commands:
@ -32,7 +40,6 @@ steps:
- staging - staging
- production - production
--- ---
kind: pipeline kind: pipeline
name: windows-build name: windows-build
@ -40,11 +47,19 @@ type: exec
platform: platform:
os: windows os: windows
arch: amd64 arch: amd64
trigger:
event:
include:
- promote
- pull_request
steps: steps:
- name: test - name: test
commands: commands:
- rustup default stable - rustup default stable
- cargo test - cargo test
when:
event:
- pull_request
- name: deploy - name: deploy
commands: commands:
- rustup default stable - rustup default stable