feat: with ci
Some checks failed
ci/woodpecker/push/test Pipeline failed

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-11-01 20:51:13 +01:00
parent b715497c37
commit 4d05da75fd
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

34
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,34 @@
when:
- event: [pull_request, tag]
- event: push
branch:
- main
variables:
- &rust_image 'rustlang/rust:nightly'
steps:
build:
image: *rust_image
group: build
commands:
- "cargo build"
test:
image: *rust_image
group: test
commands:
- "cargo test"
lint:
image: *rust_image
group: lint
commands:
- "cargo clippy"
fmt:
image: *rust_image
group: fmt
commands:
- "cargo fmt --all --check"