mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
add a cargo-fmt job to CI
This commit is contained in:
parent
d01386f3ea
commit
de5d46d3c7
1 changed files with 21 additions and 2 deletions
23
.github/workflows/checks.yml
vendored
23
.github/workflows/checks.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
|||
name: "Clippy"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v2
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
|||
name: "Documentation"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
|
@ -81,3 +81,22 @@ jobs:
|
|||
|
||||
- run: mdbook test docs
|
||||
- run: mdbook build docs
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
name: "Formatting"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
components: rustfmt
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue