Adds Gitea Actions CI/CD for test and production
Continuous Integration / check (pull_request) Failing after 6m55s
Continuous Integration / lighthouse (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped

The pipeline runs lint, format, tests, build, dependency audit and
Lighthouse (mobile and desktop, Playwright Chromium on the arm64 runner)
on every pull request, push to master and manual run.

Pushes to master deploy to test automatically, and any branch can be
deployed to test manually. Test is a Raspberry Pi with nginx next to the
current WordPress site; the deploy refuses folders containing WordPress.
Production deploys are manual and only from release/* branches, over
FTP with TLS to the IIS webhost.

The IIS web.config and both nginx configs are generated from the same
security header list as the Vite servers, with a test that fails when
the generated files drift. Adds .gitattributes for LF line endings and
pins pnpm through packageManager.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:18:51 +02:00
co-authored by Claude Opus 5.5
parent 069c7cb7eb
commit e6436601a4
20 changed files with 1394 additions and 10 deletions
+7
View File
@@ -51,6 +51,13 @@ module.exports = {
(path) => origin + path,
),
numberOfRuns: 1,
// In de CI-container draait Chrome als root en heeft het
// --no-sandbox nodig (LIGHTHOUSE_CHROME_FLAGS in de workflow).
// Niet via LHCI_COLLECT__SETTINGS__*: dat vervangt alle settings,
// ook de desktop-preset.
settings: {
chromeFlags: process.env.LIGHTHOUSE_CHROME_FLAGS ?? '',
},
},
assert: {
assertMatrix: [