d6510e2b05
Reviewed-on: #2 Co-authored-by: Jaybe <master@jaybe.dev> Co-committed-by: Jaybe <master@jaybe.dev>
36 lines
645 B
YAML
36 lines
645 B
YAML
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
|
|
env:
|
|
CI: true
|