Skip to content

Commit

Permalink
Add rust formatting action
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvaneijk committed Jul 22, 2023
1 parent 671edb4 commit e74ac77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ env:
CARGO_TERM_COLOR: always

jobs:
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt check
uses: actions-rust-lang/rustfmt@v1
cargo-deny:
needs: formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: stable
Expand Down

0 comments on commit e74ac77

Please sign in to comment.