Skip to content

Commit

Permalink
Refactor environment variable handling in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Dec 4, 2024
1 parent 510876f commit a32dbcf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
echo "TURSO_AUTH_TOKEN is set: ${{ env.TURSO_AUTH_TOKEN != '' }}"
echo "TURSO_DATABASE_URL is set: ${{ env.TURSO_DATABASE_URL != '' }}"
echo "RESEND_API_KEY" is set ${{ env.RESEND_API_KEY != '' }}
echo "EDGE_STORE_ACCESS_KEY" is set ${{ env.EDGE_STORE_ACCESS_KEY != '' }}
echo "EDGE_STORE_SECRET_KEY" is set ${{ env.EDGE_STORE_SECRET_KEY != '' }}
echo
env:
NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL }}
Expand All @@ -48,8 +47,7 @@ jobs:
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }}
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
EDGE_STORE_ACCESS_KEY: ${{ secrets.EDGE_STORE_ACCESS_KEY }}
EDGE_STORE_SECRET_KEY: ${{ secrets.EDGE_STORE_SECRET_KEY }}


- name: Build project
run: npm run build
Expand All @@ -64,8 +62,7 @@ jobs:
RAZORPAY_KEY_ID: ${{ secrets.RAZORPAY_KEY_ID }}
RAZORPAY_SECRET: ${{ secrets.RAZORPAY_SECRET }}
NEXT_PUBLIC_RAZORPAY_KEY_ID: ${{ secrets.NEXT_PUBLIC_RAZORPAY_KEY_ID }}
EDGE_STORE_ACCESS_KEY: ${{ secrets.EDGE_STORE_ACCESS_KEY }}
EDGE_STORE_SECRET_KEY: ${{ secrets.EDGE_STORE_SECRET_KEY }}


- name: Upload build artifacts (optional)
if: always()
Expand Down

0 comments on commit a32dbcf

Please sign in to comment.