diff --git a/.woodpecker.yml b/.woodpecker.yml index 164ab45..be9a548 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,40 +5,45 @@ variables: steps: prettier_check: image: tmknom/prettier:3.0.0 - group: format commands: - prettier -c . + when: + - event: pull_request toml_fmt: image: tamasfe/taplo:0.8.1 - group: format commands: - taplo format --check + when: + - event: pull_request cargo_fmt: image: *rust_image - group: format environment: # store cargo data in repo folder so that it gets cached between steps CARGO_HOME: .cargo commands: - cargo fmt -- --check + when: + - event: pull_request leptos_fmt: image: *rust_image - group: format commands: - *install_binstall - cargo binstall -y leptosfmt - leptosfmt -c .leptosfmt.toml --check src + when: + - event: pull_request cargo_machete: - group: format image: *rust_image commands: - *install_binstall - cargo binstall -y cargo-machete - cargo machete + when: + - event: pull_request cargo_clippy: image: *rust_image @@ -48,6 +53,8 @@ steps: - apt-get update && apt-get -y install libssl-dev pkg-config - rustup component add clippy - cargo clippy + when: + - event: pull_request cargo_build: image: *rust_image @@ -64,6 +71,8 @@ steps: - pnpm install - rustup target add wasm32-unknown-unknown - cargo leptos build + when: + - event: pull_request # Nothing to test yet # cargo_test: @@ -82,7 +91,8 @@ steps: - apk add curl - "curl -d'Lemmy-UI-leptos build failed: ${CI_BUILD_LINK}' ntfy.sh/lemmy_drone_ci" when: - status: [failure] + - event: pull_request + status: failure notify_on_tag_deploy: image: alpine:3 diff --git a/Cargo.toml b/Cargo.toml index 5a28dc2..6ff68f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ wasm-cookies = { version = "0", optional = true } gloo-net = { version = "0", optional = true, features = ["http"] } chrono = { version = "0", optional = true } # specific version required for better debug messages (from leptos scaffold) -wasm-bindgen = { version = "=0.2.89", optional = true } +wasm-bindgen = { version = "=0.2.92", optional = true } # required for better debug messages console_error_panic_hook = { version = "0", optional = true }