Über-Karte in der Administration, docker-publish entfernt
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Successful in 35s
CI / PHP Lint-1 (pull_request) Successful in 46s
CI / Unit Tests & Static Analysis (pull_request) Successful in 37s
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Successful in 35s
CI / PHP Lint-1 (pull_request) Successful in 46s
CI / Unit Tests & Static Analysis (pull_request) Successful in 37s
Die Lizenzhinweise standen bisher nur in den Dateien. Unter Integration & Wartung gibt es jetzt eine Karte "Über diese Installation" mit Version, PHP-Version, Lizenz, Entwickler und Quellcode sowie einer Tabelle der mitgelieferten Komponenten Dritter, die direkt auf die ausgelieferten Lizenztexte verlinkt. Die Liste kommt aus Ui::thirdParty(), damit Oberfläche und THIRD-PARTY-NOTICES.md nicht auseinanderlaufen; drei Tests prüfen, dass jede gelistete Komponente ihren Lizenztext wirklich mitliefert, in den Notices auftaucht und LICENSE vorhanden ist. Außerdem: - docker-publish.yml entfernt – der Workflow veröffentlichte nach ghcr.io und stammte noch aus der GitHub-Zeit - Readme: der Actions-Runner läuft jetzt, entsprechende Hinweise angepasst; Test-Badge durch das echte CI-Badge der Forgejo-Instanz ersetzt Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
9b43eee9e6
commit
f5081a4b11
8 changed files with 196 additions and 47 deletions
|
|
@ -90,4 +90,42 @@ class UiTest extends TestCase
|
|||
{
|
||||
$this->assertSame('../uploads/logo.png', \Ui::mediaUrl('uploads/logo.png', '../'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Uebersicht in der Administration und THIRD-PARTY-NOTICES.md duerfen
|
||||
* nicht auseinanderlaufen: jede gelistete Komponente muss ihren
|
||||
* Lizenztext wirklich mitliefern.
|
||||
*/
|
||||
public function testEveryThirdPartyComponentShipsItsLicence(): void
|
||||
{
|
||||
$root = dirname(__DIR__);
|
||||
|
||||
foreach (\Ui::thirdParty() as $component) {
|
||||
$this->assertFileExists(
|
||||
$root . '/' . $component['license_file'],
|
||||
'Lizenztext fehlt fuer ' . $component['name']
|
||||
);
|
||||
$this->assertNotSame('', trim($component['license']), 'Lizenz fehlt fuer ' . $component['name']);
|
||||
$this->assertNotSame('', trim($component['version']), 'Version fehlt fuer ' . $component['name']);
|
||||
}
|
||||
}
|
||||
|
||||
public function testThirdPartyComponentsAreListedInTheNotices(): void
|
||||
{
|
||||
$notices = (string)file_get_contents(dirname(__DIR__) . '/THIRD-PARTY-NOTICES.md');
|
||||
|
||||
foreach (\Ui::thirdParty() as $component) {
|
||||
$this->assertStringContainsString(
|
||||
$component['name'],
|
||||
$notices,
|
||||
$component['name'] . ' fehlt in THIRD-PARTY-NOTICES.md'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function testProjectLicenceFileExists(): void
|
||||
{
|
||||
$this->assertFileExists(dirname(__DIR__) . '/LICENSE');
|
||||
$this->assertStringContainsString('MIT License', (string)file_get_contents(dirname(__DIR__) . '/LICENSE'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue