add more tests
This commit is contained in:
parent
22337fb5b1
commit
bbd4c893d9
2 changed files with 23 additions and 1 deletions
22
.forgejo/workflows/nix-tests.yaml
Normal file
22
.forgejo/workflows/nix-tests.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Test Nix flake
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
runs-on: nix-latest
|
||||
name: Test nix flake
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
run: git clone ${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }} .
|
||||
- name: Run formatter
|
||||
run: nix fmt
|
||||
- name: Check flake
|
||||
run: nix flake check
|
||||
- name: Show metadata
|
||||
run: nix flake metadata
|
||||
- name: Show content
|
||||
run: nix flake show
|
||||
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
in
|
||||
{
|
||||
formatter.${system} = pkgs.nixfmt-tree;
|
||||
apps = {
|
||||
apps.${system} = {
|
||||
nixos-diff = {
|
||||
type = "app";
|
||||
program = "${pkgs.writeShellScript "nixos-diff.sh" ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue