Skip to content

chore: updated stripe web sdk tests for node18 #366

chore: updated stripe web sdk tests for node18

chore: updated stripe web sdk tests for node18 #366

Workflow file for this run

name: Testing
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
nodejs:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
strategy:
matrix:
node: ["16", "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: 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 }}