mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-26 00:52:17 +01:00
Show rustfmt action in example workflow
Show how the related rustfmt action can be used.
This commit is contained in:
parent
2f56cd1b8a
commit
8282e10527
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -24,6 +24,19 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
|
||||
# Check formatting with rustfmt
|
||||
formatting:
|
||||
name: cargo fmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# Ensure rustfmt is installed and setup problem matcher
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Rustfmt Check
|
||||
uses: actions-rust-lang/rustfmt@v1
|
||||
```
|
||||
|
||||
## Inputs
|
||||
|
|
Loading…
Reference in a new issue