Ensure that the linters and builds pass before merging a PR #7

Merged
Adrien merged 18 commits from ci/add-checks-on-mr into develop 2025-05-02 07:41:58 +00:00
4 changed files with 339 additions and 25 deletions
Showing only changes of commit 4d6d6d3515 - Show all commits

View File

@@ -1,11 +1,11 @@
steps: steps:
- name: format - name: lint - format
image: rust:1.86 image: rust:1.86
commands: | commands: |
rustup component add rustfmt rustup component add rustfmt
cargo fmt --all --check cargo fmt --all --check
- name: clippy - name: lint - clippy
image: rust:latest image: rust:latest
commands: | commands: |
apt update && apt install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev apt update && apt install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
@@ -14,6 +14,12 @@ steps:
# Not ready to block PR on fail # Not ready to block PR on fail
failure: ignore failure: ignore
- name: lint - dependencies
image: rust:latest
commands: |
cargo install --locked cargo-udeps
cargo udeps
- name: build - web (dockerize) - name: build - web (dockerize)
image: woodpeckerci/plugin-kaniko image: woodpeckerci/plugin-kaniko
settings: settings:

View File

@@ -47,9 +47,6 @@ turf = "0.9.3"
dioxus-free-icons = { version = "0.9", features = ["ionicons", "font-awesome-solid"] } dioxus-free-icons = { version = "0.9", features = ["ionicons", "font-awesome-solid"] }
modx = "0.1.4" modx = "0.1.4"
# Matrix rich text editor
wysiwyg = { git = "https://github.com/matrix-org/matrix-rich-text-editor.git" }
[target.'cfg(target_family = "wasm")'.dependencies] [target.'cfg(target_family = "wasm")'.dependencies]
# Logging/tracing # Logging/tracing
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }