Add format job

This commit is contained in:
-k 2024-08-09 23:55:24 -07:00
parent c7d698f211
commit c608e0a3b7
No known key found for this signature in database
GPG Key ID: C18AF0DBE1CFDC16

View File

@ -11,6 +11,23 @@ stages:
- release - release
- distribute - distribute
format:
stage: test
image: rust:latest
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check --verbose
cache:
key: fmt-cache
paths:
- ~/.cargo/bin/
- ~/.cargo/git/db/
- ~/.cargo/registry/cache/
- ~/.cargo/registry/index/
# base earthly setup for jobs # base earthly setup for jobs
.base: .base:
tags: [ saas-linux-medium-amd64 ] tags: [ saas-linux-medium-amd64 ]