👷 Use of the ci-lint-audit docker image
All checks were successful
ci/woodpecker/pr/validate Pipeline was successful
All checks were successful
ci/woodpecker/pr/validate Pipeline was successful
This commit is contained in:
@@ -1,38 +1,37 @@
|
||||
variables:
|
||||
- &image rg.fr-par.scw.cloud/asr-projects/beau-gosse-du-92/ci-lint-audit:latest
|
||||
|
||||
steps:
|
||||
- name: lint - format
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
rustup component add rustfmt
|
||||
cargo fmt --all --check
|
||||
|
||||
- name: lint - sort derives
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
cargo install --locked cargo-sort-derives
|
||||
cargo sort-derives --check
|
||||
|
||||
- name: lint - clippy
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
apt update && apt install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
|
||||
rustup component add clippy
|
||||
cargo clippy --all --all-features -- -D warnings
|
||||
# Not ready to block PR on fail
|
||||
failure: ignore
|
||||
|
||||
- name: lint - spellcheck
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
apt update && apt install -y libclang-dev hunspell
|
||||
cargo install --locked cargo-spellcheck
|
||||
cargo spellcheck
|
||||
|
||||
- name: lint - dependencies
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
apt update && apt install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
|
||||
cargo install --locked cargo-udeps
|
||||
rustup default nightly
|
||||
cargo udeps
|
||||
|
||||
- name: build - web (dockerize)
|
||||
@@ -46,9 +45,9 @@ steps:
|
||||
dry-run: true
|
||||
|
||||
- name: audit - dependencies
|
||||
image: rust:1.86
|
||||
image: *image
|
||||
pull: true
|
||||
commands: |
|
||||
cargo install --locked cargo-deny
|
||||
cargo deny check
|
||||
# Not ready to block PR on fail
|
||||
failure: ignore
|
||||
|
Reference in New Issue
Block a user