This commit is contained in:
@@ -8,15 +8,23 @@ on:
|
||||
branches:
|
||||
- main # Adjust this to match your main branch name
|
||||
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ubuntu
|
||||
options: --cap-add=NET_RAW --cap-add=NET_ADMIN
|
||||
validate:
|
||||
runs-on: native
|
||||
steps:
|
||||
- name: Install and run ping
|
||||
- name: Debug environment
|
||||
run: |
|
||||
cat /etc/resolv.conf
|
||||
apt-get update && apt-get install -y iputils-ping
|
||||
ping -c 4 google.com
|
||||
echo $PATH
|
||||
which nix || echo "Nix not found"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Validate NixOS configuration
|
||||
run: |
|
||||
node --version
|
||||
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