setup frontend #5

Merged
GW_MC merged 6 commits from feature/frontend-setup into master 2025-12-02 20:50:08 +08:00
2 changed files with 33 additions and 1 deletions
Showing only changes of commit 051951dc44 - Show all commits

View File

@@ -57,6 +57,37 @@ jobs:
- name: Run tests
run: cargo test --all-features
test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: apps/frontend/pnpm-lock.yaml
- name: Install frontend dependencies
run: |
cd apps/frontend
pnpm install
- name: Run frontend tests
run: |
cd apps/frontend
pnpm test
lint:
runs-on: ubuntu-latest
steps:

View File

@@ -6,7 +6,8 @@
"build": "react-router build",
"dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc"
"typecheck": "react-router typegen && tsc",
"test": "echo \"No tests specified\" && exit 0"
},
"dependencies": {
"@radix-ui/themes": "^3.2.1",