Make sure that the schema stays valid
This commit is contained in:
zimbatm 2023-04-09 11:25:11 +02:00
parent 507c028d8d
commit 8aa31ff681
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 22 additions and 0 deletions

15
.github/workflows/nix.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: Nix
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- run: ./ci.sh

7
ci.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Test that the flake-registry.json format is valid
set -euo pipefail
cd "$(dirname "$0")"
nix run --flake-registry "$PWD/flake-registry.json" nixpkgs#hello