👷 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:
|
steps:
|
||||||
- name: lint - format
|
- name: lint - format
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
commands: |
|
||||||
rustup component add rustfmt
|
|
||||||
cargo fmt --all --check
|
cargo fmt --all --check
|
||||||
|
|
||||||
- name: lint - sort derives
|
- name: lint - sort derives
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
commands: |
|
||||||
cargo install --locked cargo-sort-derives
|
|
||||||
cargo sort-derives --check
|
cargo sort-derives --check
|
||||||
|
|
||||||
- name: lint - clippy
|
- name: lint - clippy
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
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
|
cargo clippy --all --all-features -- -D warnings
|
||||||
# Not ready to block PR on fail
|
# Not ready to block PR on fail
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
|
||||||
- name: lint - spellcheck
|
- name: lint - spellcheck
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
commands: |
|
||||||
apt update && apt install -y libclang-dev hunspell
|
|
||||||
cargo install --locked cargo-spellcheck
|
|
||||||
cargo spellcheck
|
cargo spellcheck
|
||||||
|
|
||||||
- name: lint - dependencies
|
- name: lint - dependencies
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
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
|
cargo udeps
|
||||||
|
|
||||||
- name: build - web (dockerize)
|
- name: build - web (dockerize)
|
||||||
@@ -46,9 +45,9 @@ steps:
|
|||||||
dry-run: true
|
dry-run: true
|
||||||
|
|
||||||
- name: audit - dependencies
|
- name: audit - dependencies
|
||||||
image: rust:1.86
|
image: *image
|
||||||
|
pull: true
|
||||||
commands: |
|
commands: |
|
||||||
cargo install --locked cargo-deny
|
|
||||||
cargo deny check
|
cargo deny check
|
||||||
# Not ready to block PR on fail
|
# Not ready to block PR on fail
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
@@ -1,10 +1,26 @@
|
|||||||
FROM rust:1.86
|
FROM rust:1.86 AS builder
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y --no-install-recommends git libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev libclang-dev hunspell \
|
&& apt install -y --no-install-recommends libclang-dev hunspell \
|
||||||
&& apt clean
|
&& apt clean
|
||||||
|
|
||||||
RUN rustup component add rustfmt clippy \
|
RUN rustup default nightly \
|
||||||
&& rustup default nightly
|
&& rustup component add rustfmt clippy
|
||||||
|
|
||||||
RUN cargo install --locked cargo-sort-derives cargo-spellcheck cargo-udeps cargo-deny
|
RUN cargo install cargo-binstall
|
||||||
|
|
||||||
|
RUN cargo binstall cargo-sort-derives cargo-spellcheck cargo-udeps cargo-deny
|
||||||
|
|
||||||
|
|
||||||
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install -y --no-install-recommends ca-certificates git rustup build-essential \
|
||||||
|
libssl-dev pkg-config libglib2.0-0 libpango-1.0-0 libatk1.0-dev libgdk-pixbuf-2.0-dev \
|
||||||
|
libcairo2-dev libgtk-3-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev \
|
||||||
|
&& apt clean
|
||||||
|
|
||||||
|
COPY --from=builder /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/ /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/
|
||||||
|
COPY --from=builder /usr/local/cargo/bin /root/.cargo/bin/
|
||||||
|
|
||||||
|
RUN rustup default nightly
|
||||||
|
Reference in New Issue
Block a user