Add flake check status (#66)

This commit is contained in:
Patrick Stevens
2023-08-28 23:02:25 +01:00
committed by GitHub
parent 2f9a03ffe2
commit c1865bb2f8

View File

@@ -77,6 +77,19 @@ jobs:
- name: Run Alejandra
run: nix develop --command alejandra --check .
check-flake:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Check flake
run: nix flake check
linkcheck:
name: Check links
runs-on: ubuntu-latest
@@ -92,7 +105,7 @@ jobs:
run: 'nix develop --command markdown-link-check {,**/}*.md'
all-required-checks-complete:
needs: [check-dotnet-format, check-nix-format, build, build-nix, linkcheck]
needs: [check-dotnet-format, check-nix-format, build, build-nix, linkcheck, check-flake]
runs-on: ubuntu-latest
steps:
- run: echo "All required checks complete."