Adds Gitea Actions CI/CD for test and production
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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user