Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand workflows to include typo + fmt + clippy checks #63

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,45 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

typos:
name: Typos Check
runs-on: ubuntu-latest
steps:
- name: Clone this repository
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Clone this repository
uses: actions/checkout@v4

- name: Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Update Stable Rust toolchain
run: rustup update stable

- name: Add Cargo fmt
run: rustup component add rustfmt

- name: Install latest cargo-deny1
uses: taiki-e/install-action@cargo-deny

- name: Run cargo fmt
run: cargo fmt --all -- --check

- name: Run cargo fmt
run: rustup component add clippy

- name: Clippy Code Check
run: cargo +stable clippy --all-targets --no-default-features -- --deny warnings

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
Loading