ci: add formatting check
This commit is contained in:
parent
4f0d45e4d5
commit
6781155bcc
13
.github/workflows/cachix.yaml
vendored
13
.github/workflows/cachix.yaml
vendored
|
@ -9,6 +9,17 @@ on:
|
||||||
- 'flake.lock'
|
- 'flake.lock'
|
||||||
- '.github/workflows/*'
|
- '.github/workflows/*'
|
||||||
jobs:
|
jobs:
|
||||||
|
format-check:
|
||||||
|
name: Format check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v16
|
||||||
|
|
||||||
|
- name: Run alejandra
|
||||||
|
run: nix run nixpkgs#alejandra -- --check .
|
||||||
|
|
||||||
flake-check:
|
flake-check:
|
||||||
name: Flake check
|
name: Flake check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -29,7 +40,7 @@ jobs:
|
||||||
build-pkgs:
|
build-pkgs:
|
||||||
name: Nix packages
|
name: Nix packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ flake-check ]
|
needs: [ flake-check, format-check ]
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
Loading…
Reference in a new issue