Skip to content

Commit

Permalink
Update e2e-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Mar 4, 2024
1 parent 59694d6 commit 13d31fe
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,7 @@ jobs:
cd app
npm ci
- name: Install Stripe CLI
run: |
curl -o- https://raw.githubusercontent.com/stripe/stripe-cli/master/install.sh | bash
- name: Start Stripe webhook listener
env:
STRIPE_KEY: ${{ secrets.STRIPE_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
HOBBY_SUBSCRIPTION_PRICE_ID: ${{ secrets.HOBBY_SUBSCRIPTION_PRICE_ID }}
PRO_SUBSCRIPTION_PRICE_ID: ${{ secrets.PRO_SUBSCRIPTION_PRICE_ID }}
run: |
stripe listen --forward-to localhost:3001/stripe-webook &
- name: Test Stripe webhook listener
run: |
RESPONSE=$(curl -so -w "%{http_code}" -X POST http://localhost:3000/webhook-path)
if [ $RESPONSE -ne 200 ]; then
echo "Webhook listener is not active"
exit 1
fi
- name: Setup other Env Vars
- name: Setup Env Vars not in github secrets
run: |
cd app
cp .env.server.example .env.server
Expand Down

0 comments on commit 13d31fe

Please sign in to comment.