-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Laravel 10 dependencies (#32) (#38) Co-authored-by: Samuel Mwangi <samuel@samuelmwangi.co.ke> * USSD V3 (#39) * Version 3.0 wip * Try github actions for testing * Update build badges * Listing pagination aid * Limit content aid * Making limit content, paginate and terminate play nice together * Format code with php cs fixer * Trim output and add conditional trait * Validate continuing mode * Refector to use method for exception-handler and response * Import InvalidArgumentException in Testing * Specify PHP version * Use decision instead of string for continuing state * Allow creating state or action as initial state with option * Formatting menu helper and caching current page * Rename LimitContent to Truncate and add testing util for time waiting * Timeout resumation is based on last session and not begining of session * Add exception handler command and refactor command tests * Make Ussd useContext chainable and put exception handlers in the ussd directory * Typehint functions * Use docblock for ServiceProvider * Better exceptions * Improve readme * Move some of Ussd functionality to UssdBuilder --------- Co-authored-by: Samuel Mwangi <samuel@samuelmwangi.co.ke>
- Loading branch information
1 parent
d520b24
commit 5d8d431
Showing
125 changed files
with
3,973 additions
and
2,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ "3.x" ] | ||
pull_request: | ||
branches: [ "3.x" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
- name: Run test suite | ||
run: composer run-script test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/vendor | ||
composer.lock | ||
.phpunit.result.cache | ||
.php-cs-fixer.cache | ||
testbench/ | ||
/coverage | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR12' => true, | ||
'@PHP80Migration' => true, | ||
'yoda_style' => true, | ||
'no_unused_imports' => true, | ||
'ordered_imports' => true, | ||
'ordered_class_elements' => true, | ||
'ordered_types' => true, | ||
]) | ||
->setFinder((new PhpCsFixer\Finder())->in(__DIR__ . '/src')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.