build: initial project release
Some checks failed
default / dotnet-default-workflow (push) Successful in 56s
release / dotnet-release-workflow (push) Failing after 53s

This commit is contained in:
Louis Seubert 2026-01-20 22:41:16 +01:00
commit e313a60138
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
59 changed files with 4903 additions and 0 deletions

View file

@ -0,0 +1,34 @@
// Copyright (c) The Geekeey Authors
// SPDX-License-Identifier: EUPL-1.2
namespace Geekeey.Process.Tests;
internal sealed class TestTempDirectory : IDisposable
{
private TestTempDirectory(string path)
{
Path = path;
}
public static TestTempDirectory Create()
{
var location = System.Reflection.Assembly.GetExecutingAssembly().Location;
var pwd = System.IO.Path.GetDirectoryName(location) ?? Directory.GetCurrentDirectory();
var dirPath = System.IO.Path.Combine(pwd, "Temp", Guid.NewGuid().ToString());
Directory.CreateDirectory(dirPath);
return new TestTempDirectory(dirPath);
}
public string Path { get; }
public void Dispose()
{
try
{
Directory.Delete(Path, recursive: true);
}
catch (DirectoryNotFoundException) { }
}
}