Ci/GitHub actions (#7822)

Merge pull request 7822
This commit is contained in:
Edward Thomson
2019-09-26 18:32:59 +01:00
committed by jekyllbot
parent f00a642901
commit 275702edd5
5 changed files with 57 additions and 6 deletions

View File

@@ -80,6 +80,17 @@ module DirectoryHelpers
def test_dir(*subdirs)
root_dir("test", *subdirs)
end
def temp_dir(*subdirs)
if Utils::Platforms.windows?
drive = Dir.pwd.sub(%r!^([^\/]+).*!, '\1')
temp_root = File.join(drive, "tmp")
else
temp_root = "/tmp"
end
File.join(temp_root, *subdirs)
end
end
class JekyllUnitTest < Minitest::Test