mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 01:55:11 +02:00
nixf-tidy-action is a nix linter based on libnixf. It detects deadcode, unused `rec`, and syntax errors. nixf-tidy-action will only report warnings on changed files in diff (thus it will not be very pedantic). 
25 lines
823 B
YAML
25 lines
823 B
YAML
name: nixf-tidy code linter
|
|
|
|
on:
|
|
[ pull_request ]
|
|
|
|
jobs:
|
|
nixf-tidy:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
extra_nix_config: |
|
|
trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
|
substituters = https://nix-community.cachix.org https://cache.nixos.org/
|
|
- run: nix profile install github:nix-community/nixd#nixd
|
|
- uses: inclyc/nixf-tidy-action@v1
|