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
2 changed files with 33 additions and 23 deletions
Showing only changes of commit 60756b7e72 - Show all commits

View File

@@ -1,6 +1,6 @@
steps: steps:
- name: format - name: format
image: rust:latest image: rust:1.86
commands: | commands: |
rustup component add rustfmt rustup component add rustfmt
cargo fmt --all --check cargo fmt --all --check
@@ -14,7 +14,7 @@ steps:
# # Not ready for clippy validation # # Not ready for clippy validation
# failure: ignore # failure: ignore
- name: build-web (dockerize) - name: build - web (dockerize)
image: woodpeckerci/plugin-kaniko image: woodpeckerci/plugin-kaniko
settings: settings:
registry: rg.fr-par.scw.cloud registry: rg.fr-par.scw.cloud
@@ -24,6 +24,12 @@ steps:
from_secret: registry-password from_secret: registry-password
dry-run: true dry-run: true
- name: audit - depedencies
image: rust:1.86
command: |
cargo install --locked cargo-deny
cargo deny check
when: when:
- event: pull_request - event: pull_request
# - event: push # - event: push