Added CI configuration
This commit is contained in:
parent
508741be81
commit
ca9d44e7db
2 changed files with 20 additions and 0 deletions
5
.woodpecker/.rustfmt.yml
Normal file
5
.woodpecker/.rustfmt.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
pipeline:
|
||||||
|
lint:
|
||||||
|
image: 'rustlang/rust:nightly'
|
||||||
|
commands:
|
||||||
|
- cargo fmt -- --check
|
||||||
15
.woodpecker/.test.yml
Normal file
15
.woodpecker/.test.yml
Normal 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
|
||||||
Reference in a new issue