Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 11 additions & 69 deletions .github/workflows/fe-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,90 +29,32 @@ jobs:
with:
version: 8

- uses: actions/cache@v4
id: cache
- name: Cache dependencies
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
path: |
~/.pnpm-store
node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
${{ runner.os }}-pnpm-

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: |
cd src/frontend
pnpm install --strict-peer-dependencies=false --frozen-lockfile
pnpm install --strict-peer-dependencies=false --no-frozen-lockfile
pnpm add turbo --save-dev -w

type-check:
needs: [changes]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Typescript Check
run: |
cd src/frontend
pnpm install
pnpm typescript
env:
NODE_OPTIONS: --max-old-space-size=4096

lint:
needs: [changes]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Prettier check
- name: CI
run: |
cd src/frontend
pnpm install
pnpm format --check

- name: Lint
run: |
cd src/frontend
pnpm lint

build:
needs: [changes, lint, type-check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Build project
run: |
cd src/frontend
pnpm install
pnpm build
env:
NODE_OPTIONS: --max_old_space_size=4096

- name: Build Storybook
run: |
cd src/frontend
pnpm install
pnpm build-storybook
pnpm turbo typescript lint format build build-storybook --parallel

required:
needs: [changes, lint, type-check, build]
needs: [changes]
if: always()
runs-on: ubuntu-latest
steps:
Expand Down
55 changes: 46 additions & 9 deletions src/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

Expand All @@ -27,7 +20,6 @@ out/
build
dist


# Debug
npm-debug.log*

Expand All @@ -36,4 +28,49 @@ npm-debug.log*
*.pem

*storybook.log
*storybook-static
*storybook-static


# Build outputs (Next.js, Storybook, TypeScript)
packages/**/dist/
packages/ui/storybook-static/
.next/
.out/
coverage/

# Turbo build cache
turbo/
.vscode/
turbo/turbo.db
turbo/turbo.db-shm
turbo/turbo.db-wal

# Environment files (security-sensitive)
.env
.env.* # For different environment configurations (e.g. .env.local, .env.production)
.env.local


# Editor and OS-generated files
.DS_Store
Thumbs.db
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# TypeScript build artifacts
*.tsbuildinfo

# Linting and formatting
eslintcache
.prettier-cache

# Package manager lock files (choose the one you don't use)
package-lock.json
yarn.lock

# Turbo cache outputs (if caching is enabled)
.pnpm-store/
turbo/cache/
9 changes: 4 additions & 5 deletions src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"storybook": "pnpm --filter @workspace/ui run storybook",
"build-storybook": "pnpm --filter @workspace/ui run build-storybook",
"danger": "danger ci --config tsconfig.danger.json",
"typescript": "tsc --noEmit"
"format": "turbo run format",
"storybook": "turbo run storybook --filter=@workspace/ui",
"build-storybook": "turbo run build-storybook --filter=@workspace/ui",
"typescript": "turbo run typescript"
},
"devDependencies": {
"@workspace/eslint-config": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions src/frontend/packages/ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
storybook-static/**
Loading
Loading