Run clippy in rust CI
This commit is contained in:
parent
e8e4ce9a2f
commit
170b2a2d4d
|
@ -1,7 +1,8 @@
|
|||
on: push
|
||||
name: "Build Nix package on Ubuntu"
|
||||
|
||||
on:
|
||||
push:
|
||||
env:
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -18,4 +19,11 @@ jobs:
|
|||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.REPO_NAME }}-${{ env.COMMIT_HASH }}-x86_64-linux
|
||||
path: result/bin/${{ env.REPO_NAME }}
|
||||
path: result/bin/${{ env.REPO_NAME }}
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v23
|
||||
- name: Lint
|
||||
run: nix develop --command cargo clippy --all-targets --all-features
|
||||
|
|
Loading…
Reference in New Issue