Skip to content

Commit

Permalink
ci: add Nix coverage
Browse files Browse the repository at this point in the history
This commit adds a new `nix` workflow that:

1. Installs Nix
2. Sets up caching of the Nix store
3. Runs `nix flake check --all-systems`

This will ensure that the Flake continues to evaluate and that all of
its outputs build.

It doesn't exercise the whole dev environment but should catch simple
errors and bitrot.
  • Loading branch information
cpu committed Mar 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 039f794 commit 367709b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
pull_request:
merge_group:
schedule:
- cron: '0 18 * * *'

name: Nix
permissions:
contents: read

jobs:
flake:
name: Nix Flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Setup Nix Caching
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check Flake & Outputs
run: nix flake check --all-systems

0 comments on commit 367709b

Please sign in to comment.