mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 09:49:45 +01:00
tests: Differentiate between local and online tests
This commit is contained in:
parent
53685b9e5e
commit
e492d80d0b
@ -4,13 +4,13 @@ require "./methods/*"
|
|||||||
check_top_level_imports("modules")
|
check_top_level_imports("modules")
|
||||||
check_top_level_imports("overlays")
|
check_top_level_imports("overlays")
|
||||||
|
|
||||||
describe "./overlays/joshuto/default.nix" do
|
describe "./overlays/joshuto/default.nix", tags: "online" do
|
||||||
it "uses the latest joshuto commit" do
|
it "uses the latest joshuto commit" do
|
||||||
check_latest_commit("kamiyaa/joshuto", branch: "main")
|
check_latest_commit("kamiyaa/joshuto", branch: "main")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "./overlays/rofi/default.nix" do
|
describe "./overlays/rofi/default.nix", tags: "online" do
|
||||||
it "uses the latest rofi-wayland commit" do
|
it "uses the latest rofi-wayland commit" do
|
||||||
check_latest_commit("lbonn/rofi", branch: "wayland")
|
check_latest_commit("lbonn/rofi", branch: "wayland")
|
||||||
end
|
end
|
||||||
|
@ -5,7 +5,7 @@ hint = ""
|
|||||||
|
|
||||||
def check_top_level_imports(directory)
|
def check_top_level_imports(directory)
|
||||||
describe "./#{directory}/default.nix" do
|
describe "./#{directory}/default.nix" do
|
||||||
it "imports all modules in ./#{directory}/" do
|
it "imports all modules in ./#{directory}/", tags: "local" do
|
||||||
all_modules = Dir.children(directory)
|
all_modules = Dir.children(directory)
|
||||||
all_modules.delete("default.nix")
|
all_modules.delete("default.nix")
|
||||||
modules = File.read("./#{directory}/default.nix")
|
modules = File.read("./#{directory}/default.nix")
|
||||||
@ -18,7 +18,7 @@ def check_top_level_imports(directory)
|
|||||||
hint = ""
|
hint = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
it "only imports modules that exist in ./#{directory}/" do
|
it "only imports modules that exist in ./#{directory}/", tags: "local" do
|
||||||
all_modules = Dir.children(directory)
|
all_modules = Dir.children(directory)
|
||||||
all_modules.delete("default.nix")
|
all_modules.delete("default.nix")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user