tests: Remove rofi check

This commit is contained in:
Donovan Glover 2023-07-06 21:43:02 -04:00
parent c553dffcb8
commit 44b6e345d1
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 0 additions and 22 deletions

View File

@ -1,16 +0,0 @@
require "spec"
require "json"
require "http/client"
def check_latest_commit(repository, branch = "master")
response = HTTP::Client.get "https://api.github.com/repos/#{repository}/branches/#{branch}"
response.status_code.should eq(200)
json = JSON.parse(response.body)
File.read_lines("./overlays/#{repository.split("/")[1]}/default.nix").each do |line|
if line.includes? "version ="
nix_hash = line.split('"')[1]
json["commit"]["sha"].should eq(nix_hash)
end
end
end

View File

@ -7,9 +7,3 @@ check_top_level_imports("home")
check_top_level_imports("modules")
check_top_level_imports("overlays")
check_top_level_imports("specializations")
describe "./overlays/rofi/default.nix", tags: "online" do
it "uses the latest rofi-wayland commit" do
check_latest_commit("lbonn/rofi", branch: "wayland")
end
end