Skip to content

Commit

Permalink
Action for checking if the flakes are correct
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed May 26, 2024
1 parent 43b003c commit 79c7426
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate Nix Flake

on:
workflow_dispatch:
push:
paths:
- '**.nix'
- '**.lock'
- '.github/workflows/check.yml'

jobs:
check-flake:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 1

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

- name: Check Flake
run: nix flake check --accept-flake-config

0 comments on commit 79c7426

Please sign in to comment.