From 2b1c5a46ca8cbfadc88474ce2ce0442d926c0571 Mon Sep 17 00:00:00 2001 From: Joywin Bennis <107112207+joywin2003@users.noreply.github.com> Date: Thu, 12 Sep 2024 10:02:13 +0530 Subject: [PATCH] Refactor: Add environment variable checks for Turso authentication and database URL --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1be828c..c54f3cf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,11 +34,15 @@ jobs: echo "NEXTAUTH_SECRET is set: ${{ env.NEXTAUTH_SECRET != '' }}" echo "GOOGLE_ID is set: ${{ env.GOOGLE_ID != '' }}" echo "GOOGLE_SECRET is set: ${{ env.GOOGLE_SECRET != '' }}" + echo "TURSO_AUTH_TOKEN is set: ${{ env.TURSO_AUTH_TOKEN != '' }}" + echo "TURSO_DATABASE_URL is set: ${{ env.TURSO_DATABASE_URL != '' }}" env: NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL }} NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} GOOGLE_ID: ${{ secrets.GOOGLE_ID }} GOOGLE_SECRET: ${{ secrets.GOOGLE_SECRET }} + TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }} + TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }} - name: Build project run: npm run build @@ -47,6 +51,8 @@ jobs: GOOGLE_SECRET: ${{ secrets.GOOGLE_SECRET }} NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL }} + TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }} + TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }} - name: Upload build artifacts (optional) if: always()