2024-04-03 16:53:52 +00:00
|
|
|
name: Code quality
|
|
|
|
|
|
|
|
on: pull_request
|
|
|
|
|
2024-04-08 20:40:38 +00:00
|
|
|
concurrency:
|
2024-04-08 20:53:23 +00:00
|
|
|
group: ${{ gitea.ref }}
|
2024-04-08 20:40:38 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-04-03 16:53:52 +00:00
|
|
|
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"
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run Clippy
|
|
|
|
run: |
|
2024-04-08 20:53:23 +00:00
|
|
|
nix develop . --command cargo clippy -- -Dwarnings
|