From f93812aac800cc71f062c9ada56e55c4f9c83de7 Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:18:02 +0100 Subject: [PATCH 1/6] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..2284b93 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From a5055c501b64d91444501f438fae276d3b305fd1 Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:24:52 +0100 Subject: [PATCH 2/6] Update node.js.yml --- .github/workflows/node.js.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2284b93..684b1da 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,4 +28,7 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present + env: + SUPABASE_URL: ${{ secrets.SUPABASE_URL }} + SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} - run: npm test From b433ba92577b63696dd1291150b447d5cf443c32 Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:34:04 +0100 Subject: [PATCH 3/6] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 684b1da..bb6ee5e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,6 +29,6 @@ jobs: - run: npm ci - run: npm run build --if-present env: - SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} - run: npm test From 619a74ea8f90fe78a216b8b40cbec592a6156e8a Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:44:09 +0100 Subject: [PATCH 4/6] Update node.js.yml --- .github/workflows/node.js.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bb6ee5e..3b01ae4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -11,24 +11,21 @@ on: jobs: build: - runs-on: ubuntu-latest - + env: + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} strategy: matrix: node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - env: - NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} - - run: npm test + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From 0516f4c6c182bbd16116f86b59740e873650dd02 Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:51:44 +0100 Subject: [PATCH 5/6] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3b01ae4..49eea1f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,8 +13,8 @@ jobs: build: runs-on: ubuntu-latest env: - NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} strategy: matrix: node-version: [18.x, 20.x, 22.x] From 5cb5ee7d880bbb8b19402dcf4379ff63a0b8d02f Mon Sep 17 00:00:00 2001 From: Elhadj Abdoul Diallo Date: Sun, 6 Jul 2025 10:57:11 +0100 Subject: [PATCH 6/6] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a20c44b..e040237 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev --turbopack", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "test": "echo \"No tests specified\" && exit 0" }, "dependencies": { "@supabase/supabase-js": "^2.50.0",