Make sure that the schema stays valid
This commit is contained in:
Jonas Chevalier 2023-04-09 11:27:23 +02:00 committed by GitHub
parent 507c028d8d
commit ba37c15310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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