Skip to content

feat: update stripe to latest version #739

feat: update stripe to latest version

feat: update stripe to latest version #739

Workflow file for this run

name: Testing
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
nodejs:
if:
github.event_name == 'push' || (github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
strategy:
matrix:
node: ["18"]
max-parallel: 1
name: node.js_${{ matrix.node }}_test
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install cloudflared
run: |
wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared-linux-amd64.deb
sudo apt-get update
sudo apt-get install -f
shell: /usr/bin/bash -e {0}
- name: NPM install
run: npm install
- name: Install firebase CLI
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools
- name: mask env paramaters
run: echo "::add-mask::$STRIPE_WEBHOOK_SECRET"
- name: Run tests with coverage
run: npm run test
env:
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
CLOUDFLARE_SECRET: ${{ secrets.CLOUDFLARE_SECRET }}