Skip to content

Use braintree-web-drop-in 1.41.0 #29

Use braintree-web-drop-in 1.41.0

Use braintree-web-drop-in 1.41.0 #29

Workflow file for this run

name: Braintree PHP Example
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
php-version: ['8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer, phpunit
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Run tests
env:
BT_ENVIRONMENT: ${{ secrets.BT_ENVIRONMENT }}
BT_MERCHANT_ID: ${{ secrets.BT_MERCHANT_ID }}
BT_PUBLIC_KEY: ${{ secrets.BT_PUBLIC_KEY }}
BT_PRIVATE_KEY: ${{ secrets.BT_PRIVATE_KEY }}
run: ./vendor/bin/phpunit --testsuite integration