project: add clippy workflow
All checks were successful
Code quality / check (pull_request) Successful in 2m7s
All checks were successful
Code quality / check (pull_request) Successful in 2m7s
This commit is contained in:
parent
fde295154d
commit
a4ce54ac74
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/clippy-check.yml
Normal file
23
.forgejo/workflows/clippy-check.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Code quality
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: nix-flakes
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up packages
|
||||||
|
run: |
|
||||||
|
echo "extra-substituters = https://builder.naxdy.org/attic" >> /etc/nix/nix.conf
|
||||||
|
echo "extra-trusted-public-keys = attic:05LdE8Nav5Qd1E+KOJqSwdr+WE1z8AUmSb3oKL7s8dk=" >> /etc/nix/nix.conf
|
||||||
|
nix profile install nixpkgs#nodejs "github:zhaofengli/attic?ref=6eabc3f02fae3683bffab483e614bebfcd476b21"
|
||||||
|
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
||||||
|
- name: Set up attic binary cache
|
||||||
|
run: |
|
||||||
|
attic login "${{ vars.BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.BINARY_CACHE_AUTH_KEY }}"
|
||||||
|
attic use "${{ vars.BINARY_CACHE_NAME }}"
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Run Clippy
|
||||||
|
run: |
|
||||||
|
nix develop . --command cargo clippy -- -Dwarnings
|
Loading…
Reference in a new issue