ReviewOS

also looking at this

stacks/analyticshq

Harden AnalyticsHQ release and dashboard quality

#52
Merged glennmichael123 wants to merge docs/bunpress-product-guide into main
34 files +1236 -340
.github/workflows/ci.ymlmodified+22-8
Changes to .github/workflows/ci.yml
@@ -201,7 +201,7 @@ jobs:
201201
202202 deploy-prod:
203203 if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.release-check.outputs.contains_release == '0'
204 needs: [secrets, lint, typecheck, test, release-check]
204 needs: [secrets, lint, typecheck, test, release-check, build]
205205 runs-on: ubuntu-latest
206206 environment: production
207207
@@ -250,7 +250,7 @@ jobs:
250250
251251 deploy-stage:
252252 if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-beta.'))
253 needs: [secrets, lint, typecheck, test]
253 needs: [secrets, lint, typecheck, test, build]
254254 runs-on: ubuntu-latest
255255 environment: staging
256256
@@ -297,7 +297,7 @@ jobs:
297297
298298 deploy-dev:
299299 if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.base_ref == 'main')
300 needs: [secrets, lint, typecheck, test]
300 needs: [secrets, lint, typecheck, test, build]
301301 runs-on: ubuntu-latest
302302 environment: development
303303
@@ -342,8 +342,7 @@ jobs:
342342 AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
343343 run: bun buddy deploy development --yes
344344
345 publish-commit:
346 if: github.event_name == 'pull_request'
345 build:
347346 runs-on: ubuntu-latest
348347
349348 steps:
@@ -363,8 +362,23 @@ jobs:
363362 - name: Install Dependencies
364363 run: bun install
365364
366 - name: Build
365 - name: Build application
367366 run: bun run build
368367
369 - name: Publish Commit
370 run: ./storage/framework/scripts/publish-commit
368 - name: Build documentation
369 run: bun buddy build docs
370
371 - name: Validate documentation
372 run: bun run docs:validate
373
374 - name: Validate UI accessibility
375 run: bun run ui:validate
376
377 - name: Validate responsive visual contracts
378 run: bun run visual:validate
379
380 - name: Validate production release artifact
381 run: bun run release:validate
382
383 - name: Verify generated files are current
384 run: git diff --exit-code