Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: run-tests

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run moi ça…
uses: addnab/docker-run-action@v3
with:
image: nixos/nix
options: --privileged -v ${{ github.workspace }}:/workspace
run: |
cp /workspace /tmp/workspace -r
chown root: /tmp/workspace -R
cd /tmp/workspace
nix --extra-experimental-features nix-command --extra-experimental-features flakes develop --command bash -c 'nixunits build TOTO -cc "{ services.httpd.enable = true; }" -6'
2 changes: 1 addition & 1 deletion src/nixunits.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
maintainers = [ maintainers.evoo ];
};
nativeBuildInputs = with pkgs; [ jq ];
nativeBuildInputs = with pkgs; [ jq util-linux ];

# phases = ["buildPhase"];
}