image: rust:1.82-alpine
stages:
  - test

lint:
  stage: test
  script:
    - cargo fmt --all --check
    - cargo clippy --offline --frozen --locked -- -D warnings

test:
  stage: test
  script:
    - cargo test

package:
  stage: test
  script:
    - cargo package --release
  dependencies:
    - test
    - lint