github action: Add clippy check

Because the existing warnings are all fixed.

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2021-03-03 13:46:19 +08:00
parent 9ec1010a15
commit fdabe52401

View File

@@ -17,6 +17,13 @@ jobs:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- run: make fmt
clippy:
name: Clippy Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- run: make clippy
test:
name: Run Unit Test
runs-on: ubuntu-latest
@@ -24,3 +31,4 @@ jobs:
- uses: actions/checkout@v2
- run: make test