Skip to content

Commit da4e4fd

Browse files
committed
ci: add GitHub Actions pipeline and CodeRabbit configuration
1 parent d7faeed commit da4e4fd

27 files changed

Lines changed: 4755 additions & 4659 deletions

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig helps maintain consistent coding styles
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.{yml,yaml,json}]
18+
indent_size = 2

.gitattributes

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
###############################################################################
2+
# Normalize text files
3+
###############################################################################
4+
5+
* text=auto eol=lf
6+
7+
###############################################################################
8+
# Source Code
9+
###############################################################################
10+
11+
*.ts text
12+
*.tsx text
13+
*.js text
14+
*.jsx text
15+
*.mjs text
16+
*.cjs text
17+
18+
###############################################################################
19+
# Configuration Files
20+
###############################################################################
21+
22+
*.json text
23+
*.yml text
24+
*.yaml text
25+
*.md text
26+
*.css text
27+
*.scss text
28+
*.html text
29+
*.svg text
30+
31+
###############################################################################
32+
# Binary Files
33+
###############################################################################
34+
35+
*.png binary
36+
*.jpg binary
37+
*.jpeg binary
38+
*.gif binary
39+
*.ico binary
40+
*.webp binary
41+
*.woff binary
42+
*.woff2 binary
43+
*.ttf binary
44+
*.eot binary
45+
*.pdf binary
46+
*.zip binary

.github/coderabbit.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: "en-US"
2+
3+
early_access: false
4+
5+
reviews:
6+
profile: "assertive"
7+
8+
request_changes_workflow: false
9+
10+
high_level_summary: true
11+
12+
high_level_summary_placeholder: true
13+
14+
review_status: true
15+
16+
collapse_walkthrough: false
17+
18+
changed_files_summary: true
19+
20+
sequence_diagrams: true
21+
22+
auto_review:
23+
enabled: true
24+
25+
chat:
26+
auto_reply: true
27+
28+
knowledge_base:
29+
learnings:
30+
scope: auto

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI Pipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
group: ci-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
name: Format · Lint · Typecheck · Build
22+
runs-on: ubuntu-latest
23+
24+
timeout-minutes: 20
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v5
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v5
32+
with:
33+
node-version: 22
34+
cache: npm
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Check formatting
40+
run: npm run format:check
41+
42+
- name: Run ESLint
43+
run: npm run lint
44+
45+
- name: TypeScript typecheck
46+
run: npm run typecheck
47+
48+
- name: Run tests
49+
run: npm test
50+
51+
- name: Build Next.js application
52+
run: npm run build

app/dashboard/ai/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export default function AIDashboardPage() {
44
<h1 className="text-3xl font-bold">Hyper AI Dashboard (Coming Soon)</h1>
55
</main>
66
);
7-
}
7+
}

components/ai/answer-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,4 @@ export default function AnswerViewer({ answer }: AnswerViewerProps) {
333333
</ReactMarkdown>
334334
</div>
335335
);
336-
}
336+
}

components/university/branch-grid.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export default function BranchGrid() {
4747
});
4848

4949
return (
50-
<section id="branches" className="relative overflow-hidden border-b border-border bg-background py-16 md:py-20 lg:py-24">
50+
<section
51+
id="branches"
52+
className="relative overflow-hidden border-b border-border bg-background py-16 md:py-20 lg:py-24"
53+
>
5154
{/* Background Glow */}
5255
<div className="absolute inset-0 -z-10">
5356
<div className="absolute left-0 top-0 h-[500px] w-[500px] rounded-full bg-blue-500/5 blur-[120px]" />

components/university/university-hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function UniversityHero() {
5151
"Previous Year Questions",
5252
"Hyper AI Assistance",
5353
];
54-
const handleScrollToBranches = (e: React.MouseEvent<HTMLAnchorElement>) => {
54+
const handleScrollToBranches = (e: React.MouseEvent<HTMLAnchorElement>) => {
5555
e.preventDefault();
5656
const section = document.getElementById("branches");
5757
if (section) {
@@ -113,7 +113,7 @@ export default function UniversityHero() {
113113
>
114114
<a
115115
href="#branches"
116-
onClick={handleScrollToBranches}
116+
onClick={handleScrollToBranches}
117117
className="group inline-flex items-center justify-center gap-2 rounded-xl bg-[#1D4ED8] px-8 py-4 font-semibold text-white shadow-lg shadow-blue-500/25 transition-all duration-300 hover:bg-[#1E40AF]"
118118
>
119119
Explore Branches

0 commit comments

Comments
 (0)