mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +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("overlays")
|
||||
|
||||
describe "./overlays/joshuto/default.nix" do
|
||||
describe "./overlays/joshuto/default.nix", tags: "online" do
|
||||
it "uses the latest joshuto commit" do
|
||||
check_latest_commit("kamiyaa/joshuto", branch: "main")
|
||||
end
|
||||
end
|
||||
|
||||
describe "./overlays/rofi/default.nix" do
|
||||
describe "./overlays/rofi/default.nix", tags: "online" do
|
||||
it "uses the latest rofi-wayland commit" do
|
||||
check_latest_commit("lbonn/rofi", branch: "wayland")
|
||||
end
|
||||
|
@ -5,7 +5,7 @@ hint = ""
|
||||
|
||||
def check_top_level_imports(directory)
|
||||
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.delete("default.nix")
|
||||
modules = File.read("./#{directory}/default.nix")
|
||||
@ -18,7 +18,7 @@ def check_top_level_imports(directory)
|
||||
hint = ""
|
||||
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.delete("default.nix")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user