This commit is contained in:
@@ -8,30 +8,14 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 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:
|
test:
|
||||||
runs-on: nixos
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
image: ubuntu
|
||||||
options: --cap-add=NET_RAW --cap-add=NET_ADMIN
|
options: --cap-add=NET_RAW --cap-add=NET_ADMIN
|
||||||
steps:
|
steps:
|
||||||
- name: Debug environment
|
- name: Install and run ping
|
||||||
run: |
|
run: |
|
||||||
nix-shell -p nix nodejs-slim which iputils
|
apt-get update && apt-get install -y iputils-ping
|
||||||
which nix || echo "nix not found"
|
ping -c 4 google.com
|
||||||
which node || echo "node not found"
|
|
||||||
ping -c 5 google.de
|
|
||||||
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Validate NixOS configuration
|
|
||||||
run: |
|
|
||||||
nix flake check
|
|
||||||
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
|
|
||||||
env:
|
|
||||||
NIX_CONFIG: "experimental-features = nix-command flakes"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user