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
42 changes: 42 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
updates:
# Frontend dependencies
- package-ecosystem: "npm"
directory: "/frontend"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 10
labels:
- "dependencies"
- "frontend"
reviewers:
- "Shaurya2k06"
commit-message:
prefix: "chore(frontend)"
include: "scope"
groups:
react:
patterns:
- "react*"
- "@types/react*"
vite:
patterns:
- "vite*"
- "@vitejs/*"
solana:
patterns:
- "@solana/*"
- "@coral-xyz/*"

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
labels:
- "dependencies"
- "github-actions"
commit-message:
prefix: "chore(ci)"
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Frontend to Vercel

on:
push:
branches:
- main
paths:
- 'frontend/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
working-directory: ./frontend
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
working-directory: ./frontend
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
working-directory: ./frontend
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: PR Checks

on:
pull_request:
branches:
- main
- develop

jobs:
lint-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install frontend dependencies
working-directory: ./frontend
run: npm ci

- name: Run linter
working-directory: ./frontend
run: npm run lint --if-present || echo "No lint script found"

- name: Type check
working-directory: ./frontend
run: npm run type-check --if-present || npx tsc --noEmit

- name: Run tests
working-directory: ./frontend
run: npm test --if-present || echo "No test script found"

- name: Build project
working-directory: ./frontend
run: npm run build

code-quality:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Install frontend dependencies
working-directory: ./frontend
run: npm ci

- name: Check code formatting
working-directory: ./frontend
run: npx prettier --check "src/**/*.{ts,tsx}" || echo "No prettier config found"
2 changes: 2 additions & 0 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/components/OnboardingFlow.old.tsx
src/components/OnboardingFlow.tsx.backup
Loading
Loading