Skip to content

Improve CI to make it work again #21

Improve CI to make it work again

Improve CI to make it work again #21

Workflow file for this run

name: Rust linting and formatting
on:
pull_request:
paths:
- .github/workflows/*.yml
- '**/*.rs'
workflow_dispatch:
jobs:
clippy-linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/[email protected]
with:
toolchain: stable
components: clippy
override: true
- name: Clippy check
env:
RUSTFLAGS: --deny warnings
run: |
time cargo clippy --locked --all-targets --no-default-features
time cargo clippy --locked --all-targets --all-features
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/[email protected]
with:
toolchain: stable
components: rustfmt
override: true
- name: Check formatting
run: |
rustfmt --version
cargo fmt -- --check