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