Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing woodpecker. #53

Merged
merged 3 commits into from Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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