Skip to content

Commit

Permalink
Merge pull request #53 from LemmyNet/woodpecker_events_1
Browse files Browse the repository at this point in the history
Fixing woodpecker.
  • Loading branch information
jim-taylor-business committed Mar 28, 2024
2 parents 0fbf3cb + f45b619 commit c24142e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .woodpecker.yml
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -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 }

Expand Down

0 comments on commit c24142e

Please sign in to comment.