From bac4c2ca9e015c51368194c140fd060e4c433fa6 Mon Sep 17 00:00:00 2001 From: SoorajModi Date: Wed, 19 Feb 2025 00:41:51 -0500 Subject: [PATCH 01/12] Add CI pipeline --- .github/workflows/CI.yml | 30 +++++++++++++++++++++++++ src/lib/utilities/__tests__/api.test.ts | 0 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/CI.yml delete mode 100644 src/lib/utilities/__tests__/api.test.ts diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..3cea59d --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ 19, 20, 21 ] + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Setup Node 🎯 + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - name: Install dependencies 💿 + run: npm ci + + - name: Run linter ⚡ + run: npm run lint + + - name: Run build 🔨 + run: npm run build \ No newline at end of file diff --git a/src/lib/utilities/__tests__/api.test.ts b/src/lib/utilities/__tests__/api.test.ts deleted file mode 100644 index e69de29..0000000 From b6f3e8bb656721d0643e51d68a633bc78f0da525 Mon Sep 17 00:00:00 2001 From: SoorajModi Date: Wed, 19 Feb 2025 00:42:56 -0500 Subject: [PATCH 02/12] Add pull request template --- .github/pull_request_template.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..c0abbf0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ +**Why** + + +--- + +**What** + + +--- + +**Verification** + From 70b357ba6f760fdeb091400ca1ef9aaa0e506614 Mon Sep 17 00:00:00 2001 From: SoorajModi Date: Wed, 19 Feb 2025 00:43:49 -0500 Subject: [PATCH 03/12] Add file --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..551a320 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @amgvu From 80731452bb97626bfdcc9d73cd3a86c55e51c79e Mon Sep 17 00:00:00 2001 From: SoorajModi Date: Wed, 19 Feb 2025 01:00:04 -0500 Subject: [PATCH 04/12] Add template.env --- template.env | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 template.env diff --git a/template.env b/template.env new file mode 100644 index 0000000..6236169 --- /dev/null +++ b/template.env @@ -0,0 +1,11 @@ +NEXT_PUBLIC_SUPABASE_URL= +NEXT_PUBLIC_SUPABASE_KEY= +NEXT_PUBLIC_BOT_API_URL= +NEXTAUTH_SECRET= +NEXTAUTH_ID= +NEXTAUTH_URL= +DISCORD_TOKEN= +DISCORD_CLIENT_ID= +DISCORD_GUILD_ID= +DISCORD_CLIENT_SECRET= +NEXT_PUBLIC_GEMINI_API_KEY= From 05dd816f59395a1da0e67b1ad828583020ae3197 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:02:07 -0500 Subject: [PATCH 05/12] test --- .github/pull_request_template.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index c0abbf0..86f2bdc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,12 +1,15 @@ **Why** + --- **What** + --- **Verification** - + + From 6e6a59c8102a3969d25d796285d81a26851b57e6 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:10:03 -0500 Subject: [PATCH 06/12] test2 --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 86f2bdc..cdc5cd0 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -12,4 +12,4 @@ **Verification** - + From 4d48f93849dbc33cabeb5332156e563ec19f7ed2 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:15:52 -0500 Subject: [PATCH 07/12] env --- .github/workflows/CI.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3cea59d..6fc9a8b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ 19, 20, 21 ] + node: [19, 20, 21] steps: - name: Checkout 🛎️ @@ -27,4 +27,10 @@ jobs: run: npm run lint - name: Run build 🔨 - run: npm run build \ No newline at end of file + run: npm run build + env: + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} + NEXT_PUBLIC_BOT_API_URL: ${{ secrets.BOT_API_URL }} + NEXT_PUBLIC_BACKEND_URL: ${{ secrets.BACKEND_URL }} + NEXT_PUBLIC_GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} From 9e66a8ba26ff6033babb67be26447351c46a72b3 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:21:28 -0500 Subject: [PATCH 08/12] plz --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index cdc5cd0..86f2bdc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -12,4 +12,4 @@ **Verification** - + From f956abf0be33094c271cc4a411fe51719ba0ee76 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:24:50 -0500 Subject: [PATCH 09/12] test --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 86f2bdc..cdc5cd0 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -12,4 +12,4 @@ **Verification** - + From 9a5369a801c412f8772bf3718f9107c8c74f9491 Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:27:18 -0500 Subject: [PATCH 10/12] updated env --- .github/workflows/CI.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6fc9a8b..73b201b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,7 +30,4 @@ jobs: run: npm run build env: NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} - NEXT_PUBLIC_BOT_API_URL: ${{ secrets.BOT_API_URL }} - NEXT_PUBLIC_BACKEND_URL: ${{ secrets.BACKEND_URL }} - NEXT_PUBLIC_GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_KEY }} From ced4842e35db9c0962f2acb53792f8f68d861fae Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:30:06 -0500 Subject: [PATCH 11/12] final --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 73b201b..bab5629 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,4 +30,4 @@ jobs: run: npm run build env: NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_KEY }} + NEXT_PUBLIC_SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} From 6615f017c564f924d7e32ffc7d16bc17372d4bba Mon Sep 17 00:00:00 2001 From: Kevin Vu <112991211+amgvu@users.noreply.github.com> Date: Sat, 21 Jun 2025 04:43:20 -0500 Subject: [PATCH 12/12] remove supabase.ts --- .github/workflows/CI.yml | 3 --- src/lib/supabase.ts | 6 ------ 2 files changed, 9 deletions(-) delete mode 100644 src/lib/supabase.ts diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bab5629..0ecc6dc 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,6 +28,3 @@ jobs: - name: Run build 🔨 run: npm run build - env: - NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts deleted file mode 100644 index aad3253..0000000 --- a/src/lib/supabase.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { createClient } from "@supabase/supabase-js"; - -const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL || ""; -const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_KEY || ""; - -export const supabase = createClient(supabaseUrl, supabaseKey);