mirror of
https://github.com/NixOS/flake-registry.git
synced 2025-11-08 19:46:12 +01:00
parent
507c028d8d
commit
ba37c15310
2 changed files with 22 additions and 0 deletions
15
.github/workflows/nix.yml
vendored
Normal file
15
.github/workflows/nix.yml
vendored
Normal 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
7
ci.sh
Executable 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue