Skip to content

Commit 32f7871

Browse files
authored
Merge pull request #124 from sr2echa/auth
CI/CD Integrations
2 parents 699f396 + fd21d73 commit 32f7871

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Summary
2+
<!--Briefly explain the purpose of this PR and the user impact.-->
3+
4+
## Changes
5+
- What changed at a high level?
6+
- Any notable design/architecture decisions?
7+
8+
## Testing
9+
<!--Testing done to ensure it works as intended-->
10+
11+
## Screenshots / Recordings (if UI)
12+
<!--Attach images or short videos/GIFs showcasing changes. -->
13+
14+
## Related Issues
15+
<!-- Link to any relevant issues. Use "Closes #<issue_number>" to automatically close an issue when this PR is merged. -->
16+
Closes #
17+
Refs #
18+
19+
## Breaking Changes
20+
<!--Describe any breaking behavior and required follow-up actions.-->
21+
22+
## Deployment Notes
23+
<!--Mention any infra/config changes (Dockerfiles, docker-compose, Nginx, env vars).-->
24+
25+

.github/workflows/lint.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Lint and Typecheck
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
frontend:
11+
name: Frontend ESLint and TS
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 'lts/*'
21+
cache: 'pnpm'
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
28+
- name: Install deps
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Generate router types
32+
run: pnpm run typecheck -- --noEmit
33+
34+
- name: TypeScript typecheck (tsc)
35+
run: pnpm run typecheck -- --noEmit
36+
37+
- name: ESLint
38+
run: pnpm eslint . --ext .ts,.tsx
39+
40+
backend:
41+
name: Backend Ruff and mypy
42+
runs-on: ubuntu-latest
43+
defaults:
44+
run:
45+
working-directory: backend
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v4
49+
50+
- name: Setup Python (uv)
51+
uses: astral-sh/setup-uv@v5
52+
with:
53+
enable-cache: true
54+
55+
- name: Pin Python version
56+
run: echo "3.12" > .python-version
57+
58+
- name: Install deps
59+
run: uv sync --all-extras --dev
60+
61+
- name: Ruff check
62+
run: uv run ruff check .
63+
64+
- name: Ruff format (diff only)
65+
run: uv run ruff format --check .
66+
67+
- name: mypy
68+
run: uv run mypy .
69+
70+

0 commit comments

Comments
 (0)