ci: Add clippy
This commit is contained in:
parent
659f060dca
commit
beb38f3414
1 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,18 @@ rustfmt:
|
|||
- cargo fmt --version
|
||||
- cargo fmt --all -- --color=always --check
|
||||
|
||||
cargo-clippy:
|
||||
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master'
|
||||
stage: test
|
||||
tags:
|
||||
- flatpak
|
||||
variables:
|
||||
MANIFEST_PATH: "build-aux/org.gnome.FractalNext.Devel.json"
|
||||
FLATPAK_MODULE: "fractal"
|
||||
script:
|
||||
- flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
|
||||
- echo "cargo clippy -- -D warnings" | flatpak-builder --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
|
||||
|
||||
pages:
|
||||
image: "ghcr.io/gtk-rs/gtk4-rs/gtk4:latest"
|
||||
variables:
|
||||
|
|
Loading…
Reference in a new issue