fractal/.gitlab-ci/run_checks.yml
2023-10-03 12:37:03 +02:00

18 lines
650 B
YAML

# Configure and run code checks
# Custom checks and lints
checks:
stage: check
image: "rustlang/rust:nightly-slim"
script:
- scripts/checks.sh --verbose --force-install
# Lint the code
cargo-clippy:
stage: check
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
tags:
- flatpak
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}