docs(ci): add CI verification note to trigger Actions (#2)

Reviewed-on: #2
Co-authored-by: Jaybe <master@jaybe.dev>
Co-committed-by: Jaybe <master@jaybe.dev>
This commit is contained in:
2025-11-14 09:45:10 +00:00
committed by jaybe
parent a9bbc357e7
commit d6510e2b05
5 changed files with 126 additions and 43 deletions
+44
View File
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches: [ main, master ]
pull_request:
jobs:
test:
runs-on: [macos, host]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install deps
run: npm ci
- name: Unit/Component tests (Vitest)
run: npm test
env:
CI: true
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: E2E tests (Playwright)
run: npm run test:e2e -- --reporter=line
env:
CI: true
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report
if-no-files-found: ignore
retention-days: 3