Skip to content

Merge pull request #138 from hawkandheron-dev/claude/fix-windhover-la… #7

Merge pull request #138 from hawkandheron-dev/claude/fix-windhover-la…

Merge pull request #138 from hawkandheron-dev/claude/fix-windhover-la… #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
unit:
name: Unit (Vitest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: |
package-lock.json
timeline-scratch/package-lock.json
- run: npm ci
- run: npm run test:unit
build:
name: Build (Vite)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: |
package-lock.json
timeline-scratch/package-lock.json
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: built-site
path: apps/
retention-days: 1
if-no-files-found: error
e2e:
name: E2E (Playwright)
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: |
package-lock.json
timeline-scratch/package-lock.json
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: built-site
path: apps/
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 7