Install/use rust toolchain for Lint step
This commit is contained in:
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -8,9 +8,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
- name: Run Rustfmt
|
- name: Run Rustfmt
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
run: RUSTFLAGS="-D warnings" cargo clippy
|
run: RUSTFLAGS="-D warnings" cargo clippy
|
||||||
doc:
|
doc:
|
||||||
name: Docs
|
name: Docs
|
||||||
|
|||||||
Reference in New Issue
Block a user