Skip to content

Commit

Permalink
v3.x: add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
apvalkov committed May 6, 2024
1 parent 3e1973a commit 6cbd996
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run PHPUnit Tests

on:
pull_request:
branches: [ "master", "v1.x", "v2.x" ]

jobs:
run_tests:
name: Run PHPUnit Tests
runs-on: ubuntu-latest

strategy:
matrix:
php_version: [ 8.2, 5.6, 7.1, 8.2 ]
branch: [ master, v1.x, v2.x ]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}

- name: Install Composer dependencies
run: composer install -q --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run PHPUnit tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions examples/fetch_webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require_once('vendor/autoload.php');

use INXY\Payments\Merchant\Webhooks\Factories\PaymentsFailedWebhookFactory;
use INXY\Payments\Merchant\Webhooks\Factories\PaymentsInitWebhookFactory;
use INXY\Payments\Merchant\Webhooks\Validator;
use INXY\Payments\Merchant\Webhooks\Enum\EventName;
Expand Down

0 comments on commit 6cbd996

Please sign in to comment.