Skip to content

Commit ea8da1a

Browse files
committed
Merge branch 'master' into request-ride-workflow
2 parents d971980 + 3621d2e commit ea8da1a

160 files changed

Lines changed: 14297 additions & 32112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
**/node_modules
33
build
44
*.log
5-
*.gz
5+
*.gz
6+
7+
**/.env
8+
9+
.dockerignore
10+
Dockerfile
11+
LICENSE
12+
13+
.github

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/cd-workflow.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/ci-backend-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@master
2525
- name: Set up Node
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v6
2727
with:
28-
node-version: '20.x'
28+
node-version: 'lts/*'
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
2931
- name: Install Server Dependencies
30-
run: npm run install:server
32+
run: pnpm install --frozen-lockfile
3133
# - name: Test Server
32-
# run: npm run test:server
34+
# run: npm run test --filter server

.github/workflows/ci-build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ jobs:
77
steps:
88
- uses: actions/checkout@master
99
- name: Set up Node
10-
uses: actions/setup-node@v1
10+
uses: actions/setup-node@v6
1111
with:
12-
node-version: '20.x'
12+
node-version: 'lts/*'
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
1315
- name: Install Dependencies
14-
run: npm install
16+
run: pnpm install --frozen-lockfile
1517
- name: Build Frontend
16-
run: CI='' npm run build:frontend
18+
run: CI='' pnpm run --filter frontend... build
1719
- name: Build Server
18-
run: CI='' npm run build:server
20+
run: CI='' pnpm run --filter server... build

.github/workflows/ci-check.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,29 @@ jobs:
66
steps:
77
- uses: actions/checkout@master
88
- name: Set up Node
9-
uses: actions/setup-node@v1
9+
uses: actions/setup-node@v6
1010
with:
11-
node-version: '20.x'
11+
node-version: 'lts/*'
12+
- name: Setup pnpm
13+
uses: pnpm/action-setup@v4
1214
- name: Clean Install
1315
run: |
14-
rm -rf node_modules
15-
rm -rf package-lock.json
16-
npm cache clean --force
17-
npm install
16+
pnpm install --frozen-lockfile
1817
echo "Prettier version:"
19-
npx prettier --version
18+
pnpm prettier --version
19+
- name: Build Shared Package
20+
run: pnpm --filter shared... build
2021
- name: Debug Prettier
2122
run: |
2223
echo "Files to be checked:"
23-
npx prettier --list-different "**/*.{ts,js,tsx,jsx,css}"
24+
pnpm prettier --list-different "**/*.{ts,js,tsx,jsx,css}"
2425
echo "Checking specific file:"
25-
npx prettier --check "frontend/src/pages/Landing/Landing.tsx"
26+
pnpm prettier --check "frontend/src/pages/Landing/Landing.tsx"
2627
echo "Running full check:"
2728
ls -la frontend/src/pages/Landing/
2829
cat frontend/src/pages/Landing/Landing.tsx | od -c
29-
npm run format:check
30+
pnpm run format:check
3031
- name: Run Linter
31-
run: npm run lint
32+
run: pnpm run lint
3233
- name: Run Type Check
33-
run: npm run type-check
34+
run: pnpm run -r type-check

.github/workflows/ci-container.yml

Lines changed: 58 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,61 @@
1-
name: CI Docker Build
1+
name: CI Docker Build / Push
22

3-
on: pull_request
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'master'
8+
tags:
9+
- 'v*'
10+
pull_request:
11+
12+
permissions:
13+
contents: read
14+
packages: write
415

516
jobs:
6-
build:
7-
uses: ./.github/workflows/docker-build-push.yml
8-
with:
9-
push: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
10-
tags: |
11-
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:pr-${{ github.event.pull_request.number }}-latest
12-
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:pr-${{ github.event.pull_request.number }}-${{ github.sha }}
13-
labels: |
14-
org.opencontainers.image.source=${{ github.event.pull_request.html_url }}
15-
org.opencontainers.image.title=PR-${{ github.event.pull_request.number }}
16-
org.opencontainers.image.description=${{ github.event.pull_request.title }}
17-
secrets: inherit
17+
build-push:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Log in to registry
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Docker meta
36+
id: meta
37+
uses: docker/metadata-action@v5
38+
with:
39+
images: ghcr.io/${{ github.repository }}
40+
tags: |
41+
type=schedule
42+
type=ref,event=branch
43+
type=ref,event=tag
44+
type=ref,event=pr
45+
type=sha
46+
47+
- name: Docker build and push
48+
uses: docker/build-push-action@v6
49+
with:
50+
push: true
51+
context: .
52+
tags: ${{ steps.meta.outputs.tags }}
53+
labels: ${{ steps.meta.outputs.labels }}
54+
cache-from: type=gha
55+
cache-to: type=gha,mode=max
56+
build-args: |
57+
VITE_CLIENT_ID=${{ secrets.VITE_CLIENT_ID }}
58+
VITE_PUBLIC_VAPID_KEY=${{ secrets.VITE_PUBLIC_VAPID_KEY }}
59+
VITE_ENCRYPTION_KEY=${{ secrets.VITE_ENCRYPTION_KEY }}
60+
VITE_GOOGLE_MAPS_API_KEY=${{ secrets.VITE_GOOGLE_MAPS_API_KEY }}
61+
VITE_GOOGLE_MAPS_MAP_ID=${{ secrets.VITE_GOOGLE_MAPS_MAP_ID }}

.github/workflows/docker-build-push.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ build/
8181
# Claude Code
8282
.claude/
8383

84-
# Husky
85-
.husky/
86-
8784
# Documentation
8885
docs/
8986

0 commit comments

Comments
 (0)