stages: - build - test cache: &global_cache key: files: - Cargo.lock - Cargo.toml paths: - target/debug/deps - target/debug/build - target/release/deps - target/release/build policy: pull-push variables: RUSTFLAGS: "-Dwarnings" SQLX_OFFLINE: "true" build: image: registry.karaolidis.com/karaolidis/glyph/rust stage: build cache: <<: *global_cache script: - cargo build test: image: registry.karaolidis.com/karaolidis/glyph/rust stage: test cache: <<: *global_cache script: - cargo test lint: image: registry.karaolidis.com/karaolidis/glyph/rust stage: test cache: <<: *global_cache script: - cargo fmt --all -- --check - cargo clippy --all-targets --all-features depcheck: image: registry.karaolidis.com/karaolidis/glyph/rust stage: test cache: <<: *global_cache script: - cargo outdated - cargo udeps --all-targets sast: stage: test include: - template: Security/SAST.gitlab-ci.yml