rand/.github/workflows/benches.yml

27 lines
591 B
YAML
Raw Normal View History

name: Benches
on:
pull_request:
paths:
- ".github/workflows/benches.yml"
- "benches/**"
jobs:
benches:
runs-on: ubuntu-latest
2024-05-24 17:03:57 +03:00
defaults:
run:
working-directory: ./benches
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy, rustfmt
- name: Rustfmt
2024-05-24 17:03:57 +03:00
run: cargo fmt -- --check
- name: Clippy
2024-05-24 17:03:57 +03:00
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: RUSTFLAGS=-Dwarnings cargo test --benches