engage_earn_api/ci/check-fmt.yml
2022-12-18 21:04:23 -06:00

23 lines
278 B
YAML

platform: linux
image_resource:
type: registry-image
source: {repository: rust}
# This should cache rustfmt
caches:
- path: "./.rustup/"
inputs:
- name: repo
run:
path: sh
args:
- -exc
- |
rustup component add rustfmt
cargo fmt -- --check
dir: "repo"