diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0caf21b..ca4841a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: