language: rust
env:
CARGO_TERM_COLOR: always
fileGroups:
sources:
- 'src/**/*'
- 'Cargo.toml'
- '/Cargo.lock'
- '/rust-toolchain.toml'
tests:
- 'tests/**/*'
- 'benches/**/*'
tasks:
format:
command: 'cargo fmt --check'
inputs: ['@group(sources)', '@group(tests)']
lint:
command: 'cargo clippy --locked -- -D warnings'
inputs: ['@group(sources)', '@group(tests)']
test:
command: 'cargo test --locked'
inputs: ['@group(sources)', '@group(tests)']
check-package:
command: 'bash ../../ops/scripts/check-package-contents.sh'
inputs: ['src/**/*', 'SKILL.md', '/ops/scripts/check-package-contents.sh']