Skip to content

update README + fix warning from CI logs #57

update README + fix warning from CI logs

update README + fix warning from CI logs #57

on: [push, pull_request]
name: Checks and Lints
jobs:
check:
name: Cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
fmt:
name: Rustfmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
#clippy:
# name: Clippy Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# components: clippy
# override: true
# - uses: giraffate/clippy-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# args: -- -D clippy::pedantic -D clippy::all
# clippy_flags: -- -D clippy::pedantic -D clippy::all
# name: Clippy Output
clippy:
name: Clippy Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
clippy_flags: -- -D clippy::pedantic -D clippy::all
github_token: ${{ secrets.GITHUB_TOKEN }}