24 lines
344 B
YAML
24 lines
344 B
YAML
platform: linux
|
|
|
|
image_resource:
|
|
type: registry-image
|
|
source: {repository: rust}
|
|
|
|
inputs:
|
|
- name: repo
|
|
|
|
run:
|
|
# path: cargo
|
|
# args: ["fmt", "--", "--check"]
|
|
# dir: "repo"
|
|
|
|
# TODO: create an image with cargo check already installed
|
|
path: sh
|
|
args:
|
|
- -exc
|
|
- |
|
|
rustup component add rustfmt
|
|
cargo fmt -- --check
|
|
dir: "repo"
|
|
|