use treemft and also enable stylua
works well with CI
This commit is contained in:
parent
ae72391e42
commit
330feb587f
3 changed files with 57 additions and 20 deletions
24
.github/workflows/flake-check.yml
vendored
24
.github/workflows/flake-check.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: "nix build and flake check"
|
||||
name: "nix flake and fmt check"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
@ -6,20 +6,8 @@ jobs:
|
|||
flake-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
github_access_token: ${{ secrets.github_token }}
|
||||
- run: nix flake check
|
||||
|
||||
nixfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
github_access_token: ${{ secrets.github_token }}
|
||||
- name: install nixfmt
|
||||
run: nix-env -f <nixpkgs> -iAP nixfmt-rfc-style
|
||||
- name: check that nix files are formatted correctly
|
||||
run : nixfmt --check
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
github_access_token: ${{ secrets.github_token }}
|
||||
- run: nix flake check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue