👷 Add format and clippy steps
Some checks failed
ci/woodpecker/pr/validate Pipeline failed

This commit is contained in:
2024-09-23 20:47:23 +02:00
parent abea905feb
commit deb3e273f4
2 changed files with 14 additions and 1 deletions

View File

@@ -13,3 +13,6 @@ steps:
when: when:
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
depends_on:
- validate

View File

@@ -1,5 +1,15 @@
steps: steps:
build: - name: format
image: rust:latest
commands:
- cargo fmt --all --check
- name: clippy
image: rust:latest
commands:
- cargo clippy --all --all-features -- -D warnings
- name: build
image: rust:latest image: rust:latest
commands: commands:
- cargo install dioxus-cli --locked -j ${JOBS_NB:-default} - cargo install dioxus-cli --locked -j ${JOBS_NB:-default}