Skip to content

chore(sdk): update dependencies #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ name: Testing
on:
push:
branches:
- "**"
- next
- master
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 }}
Expand All @@ -23,35 +21,37 @@ jobs:
max-parallel: 1
name: node.js_${{ matrix.node }}_test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: "**/package-lock.json"

- name: Install Dependencies
run: npm install

- name: Install cloudflared
- name: Build emulator functions
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}
cd firestore-stripe-payments/_emulator/functions && npm i && cd ../../..
cd firestore-stripe-web-sdk/_emulator/functions && npm i && cd ../../..

- name: NPM install
run: npm install
- name: Install firebase CLI
uses: nick-invision/retry@v2
- name: Install Firebase CLI
uses: nick-invision/retry@v1
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
command: npm i -g firebase-tools@14

- name: Install Stripe CLI
run: |
wget -q https://github.com/stripe/stripe-cli/releases/latest/download/stripe_1.27.0_linux_x86_64.tar.gz
tar -xzf stripe_1.27.0_linux_x86_64.tar.gz
sudo mv stripe /usr/local/bin/

- name: Run Tests
run: npm 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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ coverage
package-lock.json
yarn.lock
firestore-stripe-payments/_emulator/extensions/firestore-stripe-payments.secret.local
*.secret.local
Loading