mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
fix: rename unitTests to evalTests
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Nix Flake Unit Tests
|
name: Nix Flake Eval Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
- name: Run Nix Flake Unit Tests
|
- name: Run Nix Flake Eval Tests
|
||||||
run: |
|
run: |
|
||||||
echo 'Flake Unit Tests'
|
echo 'Flake Eval Tests'
|
||||||
nix eval .#unitTests --show-trace --print-build-logs --verbose
|
nix eval .#evalTests --show-trace --print-build-logs --verbose
|
||||||
@@ -12,7 +12,7 @@ otherwise, it will be difficult to manage and maintain them.
|
|||||||
Unit Tests for all flake outputs(only NixOS systems currently).
|
Unit Tests for all flake outputs(only NixOS systems currently).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix eval .#unitTests --show-trace --print-build-logs --verbose
|
nix eval .#evalTests --show-trace --print-build-logs --verbose
|
||||||
```
|
```
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ in
|
|||||||
inherit data; # for debugging purposes
|
inherit data; # for debugging purposes
|
||||||
|
|
||||||
# NixOS's unit tests.
|
# NixOS's unit tests.
|
||||||
unitTests = haumea.lib.loadEvalTests {
|
evalTests = haumea.lib.loadEvalTests {
|
||||||
src = ./tests;
|
src = ./tests;
|
||||||
inputs = args // {inherit outputs;};
|
inputs = args // {inherit outputs;};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ in {
|
|||||||
debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;};
|
debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;};
|
||||||
|
|
||||||
# Unit Tests for all NixOS systems.
|
# Unit Tests for all NixOS systems.
|
||||||
unitTests = lib.lists.all (it: it.unitTests == {}) nixosSystemValues;
|
evalTests = lib.lists.all (it: it.evalTests == {}) nixosSystemValues;
|
||||||
|
|
||||||
# NixOS Hosts
|
# NixOS Hosts
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ in
|
|||||||
inherit data; # for debugging purposes
|
inherit data; # for debugging purposes
|
||||||
|
|
||||||
# NixOS's unit tests.
|
# NixOS's unit tests.
|
||||||
unitTests = haumea.lib.loadEvalTests {
|
evalTests = haumea.lib.loadEvalTests {
|
||||||
src = ./tests;
|
src = ./tests;
|
||||||
inputs = args // {inherit outputs;};
|
inputs = args // {inherit outputs;};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ in
|
|||||||
inherit data; # for debugging purposes
|
inherit data; # for debugging purposes
|
||||||
|
|
||||||
# NixOS's unit tests.
|
# NixOS's unit tests.
|
||||||
unitTests = haumea.lib.loadEvalTests {
|
evalTests = haumea.lib.loadEvalTests {
|
||||||
src = ./tests;
|
src = ./tests;
|
||||||
inputs = args // {inherit outputs;};
|
inputs = args // {inherit outputs;};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user