ci: Added Gitea Actions config 👷

This commit is contained in:
2024-10-24 16:36:25 +13:00
parent e1cac1e31d
commit afc24185d3
4 changed files with 109 additions and 0 deletions

22
tests/misc/cleanup.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
if (is_dir(__DIR__.'/queues/'))
{
foreach(glob(__DIR__.'/queues/*', GLOB_ONLYDIR) as $queueDir)
{
foreach(glob($queueDir.'/*') as $file)
{
$split = preg_split('#[/\\\]+#', $file);
if (strpos(end($split), '.') === 0)
continue;
unlink($file);
}
rmdir($queueDir);
}
}
else
{
mkdir(__DIR__.'/queues');
}