This commit is contained in:
@@ -10,22 +10,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: nixos # This assumes you have a runner with the "flakes-action" label
|
runs-on: native
|
||||||
container:
|
|
||||||
image: nixpkgs/nix-flakes
|
|
||||||
options: --network host
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Node.js
|
|
||||||
run: |
|
|
||||||
ping google.de -c10
|
|
||||||
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
|
|
||||||
nix-channel --update
|
|
||||||
nix-env -i nodejs-slim
|
|
||||||
|
|
||||||
- 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
|
node --version
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
labels = [ "ubuntu-latest:docker://ubuntu:latest"
|
labels = [ "ubuntu-latest:docker://ubuntu:latest"
|
||||||
"nixos:docker://nixpkgs/nix-flakes:latest"
|
"nixos:docker://nixpkgs/nix-flakes:latest"
|
||||||
|
"native:host"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user