Skip to content

Commit 0ec5d60

Browse files
committed
Add workflow to check all flakes.
1 parent 5d6a12a commit 0ec5d60

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/scripts/check.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
find . -type d -maxdepth 1 \( -iname "*" ! -iname ".*" \) | while read line; do
4+
pushd $line
5+
nix flake check || { echo 'Check Failed!' ; exit 1; }
6+
popd
7+
done

.github/workflows/check.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Check"
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
check-flakes:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: cachix/install-nix-action@v20
12+
- run: ./.github/scripts/check.sh

0 commit comments

Comments
 (0)