This commit is contained in:
@@ -9,21 +9,26 @@ on:
|
|||||||
- main # Adjust this to match your main branch name
|
- main # Adjust this to match your main branch name
|
||||||
|
|
||||||
|
|
||||||
|
env:
|
||||||
|
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: native
|
runs-on: nixos
|
||||||
steps:
|
steps:
|
||||||
- name: Debug environment
|
- name: Debug environment
|
||||||
run: |
|
run: |
|
||||||
echo $PATH
|
echo $PATH
|
||||||
|
nix-shell -p nix nodejs-slim which
|
||||||
which nix || echo "Nix not found"
|
which nix || echo "Nix not found"
|
||||||
|
which node || echo "node not found"
|
||||||
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Validate NixOS configuration
|
- name: Validate NixOS configuration
|
||||||
run: |
|
run: |
|
||||||
node --version
|
|
||||||
nix flake check
|
nix flake check
|
||||||
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
|
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user