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
3 changed files with 33 additions and 20 deletions
Showing only changes of commit d5e92f282a - Show all commits

View File

@@ -5,20 +5,22 @@ steps:
rustup component add rustfmt rustup component add rustfmt
cargo fmt --all --check cargo fmt --all --check
# - name: clippy - name: 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
# rustup component add clippy rustup component add clippy
# cargo clippy --all --all-features -- -D warnings cargo clippy --all --all-features -- -D warnings
# # Not ready for clippy validation # Not ready to block PR on fail
# failure: ignore failure: ignore
- name: audit - depedencies - name: audit - depedencies
image: rust:1.86 image: rust:1.86
commands: | commands: |
cargo install --locked cargo-deny cargo install --locked cargo-deny
cargo deny check cargo deny check
# Not ready to block PR on fail
failure: ignore
- name: build - web (dockerize) - name: build - web (dockerize)
image: woodpeckerci/plugin-kaniko image: woodpeckerci/plugin-kaniko
@@ -30,7 +32,6 @@ steps:
from_secret: registry-password from_secret: registry-password
dry-run: true dry-run: true
when: when:
- event: pull_request - event: pull_request
# - event: push # - event: push