Added ci config
Some checks failed
ci/woodpecker/push/rustfmt Pipeline failed
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Jef Roosens 2022-01-02 20:47:31 +01:00
parent da477295f5
commit 5947ddb91c
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
2 changed files with 20 additions and 0 deletions

5
.woodpecker/.rustfmt.yml Normal file
View file

@ -0,0 +1,5 @@
pipeline:
lint:
image: 'rustlang/rust:nightly'
commands:
- cargo fmt -- --check

15
.woodpecker/.test.yml Normal file
View file

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