From deb3e273f4160fcea13fc0079357694f2d1de553 Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 23 Sep 2024 20:47:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20format=20and=20clippy=20st?= =?UTF-8?q?eps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/.dockerize.yaml | 3 +++ .woodpecker/.validate.yaml | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.woodpecker/.dockerize.yaml b/.woodpecker/.dockerize.yaml index f5fa465..c4856b1 100644 --- a/.woodpecker/.dockerize.yaml +++ b/.woodpecker/.dockerize.yaml @@ -13,3 +13,6 @@ steps: when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} + +depends_on: + - validate diff --git a/.woodpecker/.validate.yaml b/.woodpecker/.validate.yaml index 5517665..5604d32 100644 --- a/.woodpecker/.validate.yaml +++ b/.woodpecker/.validate.yaml @@ -1,5 +1,15 @@ 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 commands: - cargo install dioxus-cli --locked -j ${JOBS_NB:-default}