mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: clippy
|
|
name: Check clippy
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: rustup run --install nightly-2023-07-09 cargo-clippy -- -- -D warnings
|
|
- id: build-no-features
|
|
name: Check crate build with no features
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: cargo build --no-default-features
|
|
- id: build-all-features
|
|
name: Check crate builds with all features
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: cargo build --all-features --lib --bins --examples
|
|
- id: test
|
|
name: Check tests pass
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: cargo test
|
|
- id: format
|
|
name: Check rustfmt
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: rustup run --install nightly-2023-07-09 cargo-fmt --check
|
|
- id: msrv
|
|
name: Check MSRV compiles
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: rustup run --install 1.60 cargo build
|
|
- id: docs
|
|
name: Check rustdoc compiles
|
|
language: system
|
|
files: '[.]rs$'
|
|
pass_filenames: false
|
|
entry: env RUSTDOCFLAGS="-D warnings" cargo doc
|
|
- id: actions
|
|
name: Check actions work
|
|
language: system
|
|
files: '^[.]github/workflows/'
|
|
pass_filenames: false
|
|
entry: act -q
|