Skip to content

support for Laravel 11 #78

support for Laravel 11

support for Laravel 11 #78

Workflow file for this run

name: tests
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2]
laravel: [11.*]
include:
- laravel: 11.*
testbench: 10.*
name: P${{ matrix.php }} - L${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
env:
PAYSTACK_SECRET: ${{ secrets.PAYSTACK_SECRET }}
PAYSTACK_PLAN: ${{ secrets.PAYSTACK_PLAN }}
PAYSTACK_OTHER_PLAN: ${{ secrets.PAYSTACK_OTHER_PLAN }}
PAYSTACK_TRANSACTION_ID: ${{ secrets.PAYSTACK_TRANSACTION_ID }}
PAYSTACK_TRANSACTION_ID_INVALID: ${{ secrets.PAYSTACK_TRANSACTION_ID_INVALID }}
PAYSTACK_CUSTOMER: ${{ secrets.PAYSTACK_CUSTOMER }}
PAYSTACK_OTHER_CUSTOMER: ${{ secrets.PAYSTACK_OTHER_CUSTOMER }}
PAYSTACK_TRANSACTION_REF: ${{ secrets.PAYSTACK_TRANSACTION_REF }}
PAYSTACK_TRANSACTION_REF_INVALID: ${{ secrets.PAYSTACK_TRANSACTION_REF_INVALID }}