Skip to content

Component testing

Component testing #9

Workflow file for this run

name: Frontend CI
on:
push:
branches: [main]
paths:
- "frontend/**"
- ".github/workflows/frontend-ci.yml"
pull_request:
branches: [main]
paths:
- "frontend/**"
- ".github/workflows/frontend-ci.yml"
jobs:
test-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9.15.0
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: "frontend/pnpm-lock.yaml"
- name: Install dependencies
shell: bash
run: |
pnpm install --frozen-lockfile
env:
CI: true
- name: Type check
run: pnpm tsc --noEmit
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build
env:
CI: true