File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - ' php/**'
9
+ - ' .github/workflows/php-ci.yml'
10
+ pull_request :
11
+ paths :
12
+ - ' php/**'
13
+ - ' .github/workflows/php-ci.yml'
14
+ jobs :
15
+ build-test :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - name : PHPUnit Tests
21
+ uses : php-actions/phpunit@v3
22
+ with :
23
+ version : latest
24
+ configuration : " php/phpunit.xml"
25
+ test_suffix : " Test.php"
Original file line number Diff line number Diff line change 2
2
3
3
require __DIR__ . '/src/Webhook.php ' ;
4
4
require __DIR__ . '/src/Exception/WebhookVerificationException.php ' ;
5
+ require __DIR__ . '/src/Exception/WebhookSigningException.php ' ;
Original file line number Diff line number Diff line change
1
+ <phpunit bootstrap =" tests/bootstrap.php" >
2
+ <testsuites >
3
+ <testsuite name =" unit" >
4
+ <directory >tests/</directory >
5
+ </testsuite >
6
+ </testsuites >
7
+ </phpunit >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
require_once __DIR__ . '/../init.php ' ;
4
+ require_once __DIR__ . '/TestPayload.php ' ;
You can’t perform that action at this time.
0 commit comments