Files
kandev/.github/workflows/frontend-tests.yml
T
2026-01-15 19:30:56 +00:00

60 lines
1.3 KiB
YAML

name: Frontend Tests
on:
push:
branches: [main]
paths:
- "apps/web/**"
- "apps/packages/**"
- "apps/pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yml"
pull_request:
branches: [main]
paths:
- "apps/web/**"
- "apps/packages/**"
- "apps/pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yml"
jobs:
frontend:
name: Run Frontend Lint, Tests, and Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: "9"
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Debug structure
run: |
echo "=== Repository root ==="
ls -la
echo ""
echo "=== Looking for lockfiles ==="
find . -name "pnpm-lock.yaml" | true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run lint
run: pnpm --filter @kandev/web lint
- name: Run tests
run: pnpm --filter @kandev/web test
- name: Build
run: pnpm --filter @kandev/web build