Added per-step when clause

dev
Jef Roosens 2022-01-02 20:42:34 +01:00
parent d9d4e66ee5
commit 167a1ff3ed
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 5 additions and 3 deletions

View File

@ -1,13 +1,15 @@
# When block for each step is temporary until top-level when is properly implemented
pipeline: pipeline:
clippy: clippy:
image: 'rust:1.57' image: 'rust:1.57'
commands: commands:
- cargo clippy -- -D clippy::all --no-deps - cargo clippy -- -D clippy::all --no-deps
when:
event: pull_request
tests: tests:
image: 'rust:1.57' image: 'rust:1.57'
commands: commands:
- cargo test - cargo test
when:
when:
event: pull_request event: pull_request