Skip to content

Commit

Permalink
add missing stripe env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tiniscule committed Dec 2, 2023
1 parent 46c990d commit 97e5c71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
run: |
supabase init
echo -e "\n\n[functions.test-stripe-billing-webhooks]\nverify_jwt = false" >> supabase/config.toml
cat supabase/config.toml
supabase start
- name: Install supabase_test_helpers from scripts/install-dbdev-with-test-helpers.sql (remove this once remote install enabled in dbdev CLI)
run: psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f ./scripts/install-dbdev-with-test-helpers.sql
Expand All @@ -92,11 +91,15 @@ jobs:
SUPABASE_URL: http://127.0.0.1:54321
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_DEFAULT_PRICE_ID: ${{ secrets.STRIPE_DEFAULT_PRICE_ID }}
STRIPE_TRIAL_PERIOD_DAYS: 7
- name: Run tests with webhooks
run: |
./stripe listen --api-key ${{ secrets.STRIPE_API_KEY }} --forward-to http://127.0.0.1:54321/functions/v1/test-stripe-billing-webhooks &
cd supabase/tests/integration && yarn test:stripe-webhooks
env:
SUPABASE_URL: http://127.0.0.1:54321
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_DEFAULT_PRICE_ID: ${{ secrets.STRIPE_DEFAULT_PRICE_ID }}
STRIPE_TRIAL_PERIOD_DAYS: 7

0 comments on commit 97e5c71

Please sign in to comment.