ci(site): add format/lint/test/build workflow for astro site

Add Site GitHub Actions workflow running prettier format check, astro
check, tests, and build on changes under site/. Wire prettier into the
site package with config, ignore, and scripts, and format existing
sources.
This commit is contained in:
Christian Visintin
2026-06-07 23:10:24 +02:00
parent f92cb93755
commit a2d766d688
19 changed files with 445 additions and 107 deletions

View File

@@ -9,7 +9,9 @@
"prebuild": "node scripts/copy-install.mjs",
"build": "astro build",
"preview": "astro preview",
"check": "astro check"
"check": "astro check",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"@astrojs/sitemap": "^3.2.0",
@@ -18,6 +20,8 @@
"devDependencies": {
"@astrojs/check": "^0.9.9",
"@tailwindcss/vite": "^4.0.0",
"prettier": "3.8.3",
"prettier-plugin-astro": "0.14.1",
"tailwindcss": "^4.0.0",
"typescript": "^5.6.0"
}