🔨 Update generate-client.sh and docs (#2110)
This commit is contained in:
committed by
GitHub
parent
c3577c0526
commit
61e161bfb9
6
.github/workflows/generate-client.yml
vendored
6
.github/workflows/generate-client.yml
vendored
@@ -26,16 +26,12 @@ jobs:
|
|||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v7
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
|
||||||
version: "0.4.15"
|
|
||||||
enable-cache: true
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun ci
|
run: bun ci
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- run: uv run bash scripts/generate-client.sh
|
- run: bash scripts/generate-client.sh
|
||||||
env:
|
env:
|
||||||
VIRTUAL_ENV: backend/.venv
|
|
||||||
SECRET_KEY: just-for-generating-client
|
SECRET_KEY: just-for-generating-client
|
||||||
POSTGRES_PASSWORD: just-for-generating-client
|
POSTGRES_PASSWORD: just-for-generating-client
|
||||||
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
|
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
|
||||||
|
|||||||
7
.github/workflows/playwright.yml
vendored
7
.github/workflows/playwright.yml
vendored
@@ -59,16 +59,11 @@ jobs:
|
|||||||
limit-access-to-actor: true
|
limit-access-to-actor: true
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v7
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
|
||||||
version: "0.4.15"
|
|
||||||
enable-cache: true
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- run: bun ci
|
- run: bun ci
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
- run: uv run bash scripts/generate-client.sh
|
- run: bash scripts/generate-client.sh
|
||||||
env:
|
|
||||||
VIRTUAL_ENV: backend/.venv
|
|
||||||
- run: docker compose build
|
- run: docker compose build
|
||||||
- run: docker compose down -v --remove-orphans
|
- run: docker compose down -v --remove-orphans
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ But it would be only to clean them up, leaving them won't really have any effect
|
|||||||
* From the top level project directory, run the script:
|
* From the top level project directory, run the script:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/generate-client.sh
|
bash ./scripts/generate-client.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
* Commit the changes.
|
* Commit the changes.
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ set -e
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
cd backend
|
cd backend
|
||||||
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
|
uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
|
||||||
cd ..
|
cd ..
|
||||||
mv openapi.json frontend/
|
mv openapi.json frontend/
|
||||||
npm run -w frontend generate-client
|
bun run --filter frontend generate-client
|
||||||
npm run lint
|
bun run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user