mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 13:45:58 +01:00
CI: also check for formatting
This commit is contained in:
parent
d03d3f0b83
commit
9ae2f3868c
1 changed files with 15 additions and 1 deletions
16
.github/workflows/check.yml
vendored
16
.github/workflows/check.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: "Check validity of flakes"
|
name: "Validate flake & check formatting"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -11,6 +11,7 @@ on:
|
||||||
- .gitignore
|
- .gitignore
|
||||||
jobs:
|
jobs:
|
||||||
nix-flake-check:
|
nix-flake-check:
|
||||||
|
name: Validate Flake
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -19,3 +20,16 @@ jobs:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
format-with-alejandra:
|
||||||
|
name:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v18
|
||||||
|
with:
|
||||||
|
install_url: https://nixos.org/nix/install
|
||||||
|
extra_nix_config: |
|
||||||
|
auto-optimise-store = true
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
- run: nix run nixpkgs#alejandra -- -c .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue