mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
combine clippy and fmt
This commit is contained in:
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
args: --all --release -- --ignored
|
args: --all --release -- --ignored
|
||||||
|
|
||||||
check_fmt:
|
check_fmt_clippy:
|
||||||
name: Checking fmt and docs
|
name: Checking fmt and docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -55,25 +55,11 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
components: rustfmt
|
components: rustfmt clipopy
|
||||||
|
|
||||||
- name: fmt
|
- name: fmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
clippy_check:
|
|
||||||
name: Clippy check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
components: clippy
|
|
||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
run: cargo clippy --all
|
run: cargo clippy --all
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user