mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
ci: add workflow for coding style linting
This commit is contained in:
parent
b5d055df01
commit
241632822a
1 changed files with 23 additions and 0 deletions
23
.github/workflows/lints.yml
vendored
Normal file
23
.github/workflows/lints.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: Run lints
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
cachix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install nix
|
||||||
|
uses: cachix/install-nix-action@v17
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-22.05
|
||||||
|
extra_nix_config: "experimental-features = nix-command flakes"
|
||||||
|
|
||||||
|
- name: Run formatter
|
||||||
|
run: nix fmt -- --check .
|
||||||
|
|
||||||
|
- name: Run statix
|
||||||
|
run: nix run nixpkgs#statix -- check
|
||||||
Loading…
Add table
Add a link
Reference in a new issue