-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
- Loading branch information
Showing
56 changed files
with
7,322 additions
and
199 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,55 @@ | ||
# Docs https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms | ||
name: Bug report | ||
description: File a bug report to help us improve Mockery | ||
labels: | ||
- bug | ||
- triage | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: input | ||
attributes: | ||
label: Mockery Version | ||
description: What version of Mockery do you have installed? | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: PHP Version | ||
description: What version of PHP do you have installed? | ||
multiple: true | ||
options: | ||
- PHP 8.0 | ||
- PHP 8.1 | ||
- PHP 8.2 | ||
- PHP 8.3 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Issue Description | ||
description: Please describe the issue you are experiencing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Please provide clear steps to reproduce the issue, if applicable. | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: Please describe what you expected to happen. | ||
- type: textarea | ||
attributes: | ||
label: Actual Behavior | ||
description: Please describe what actually happened. | ||
- type: textarea | ||
attributes: | ||
label: Exception or Error | ||
description: Please provide error logs, if applicable. | ||
- type: textarea | ||
attributes: | ||
label: Additional Information | ||
description: Please provide any additional information that may be helpful in resolving this issue. |
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,31 @@ | ||
name: Codecov | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "[0-9]+.[0-9]+.x" | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up php 8.1 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
|
||
- name: Install dependencies | ||
run: composer self-update && composer install && composer dump-autoload | ||
|
||
- name: Run tests and collect coverage | ||
run: composer phpunit | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: ${{ github.workspace }}/.cache/phpunit/ | ||
verbose: true |
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,33 @@ | ||
name: Psalm Static analysis | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "[0-9]+.[0-9]+.x" | ||
# Allow manually triggering the workflow. | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: psalm-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
psalm: | ||
name: Psalm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
coverage: xdebug | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: Run Psalm | ||
run: composer psalm |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
*~ | ||
pearfarm.spec | ||
*.sublime-project | ||
library/Hamcrest/* | ||
composer.lock | ||
vendor/ | ||
composer.phar | ||
test.php | ||
build/ | ||
phpunit.xml | ||
*.DS_store | ||
*.sublime-project | ||
*~ | ||
.cache/ | ||
.idea/* | ||
.php_cs.cache | ||
.phpdoc/ | ||
.phpunit.result.cache | ||
build/ | ||
composer.phar | ||
docs/api | ||
library/Hamcrest/* | ||
pearfarm.spec | ||
phpDocumentor.phar* | ||
.phpunit.result.cache | ||
.phpdoc/ | ||
phpunit.xml | ||
test.php | ||
vendor/ |
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,31 @@ | ||
<?php | ||
|
||
use Symfony\CS\Config\Config; | ||
use Symfony\CS\Finder\DefaultFinder; | ||
|
||
if (class_exists('PhpCsFixer\Finder')) { // PHP-CS-Fixer 2.x | ||
$finder = PhpCsFixer\Finder::create()->in([ | ||
'library', | ||
'tests', | ||
]); | ||
|
||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules(array( | ||
'@PSR2' => true, | ||
)) | ||
->setUsingCache(true) | ||
->setFinder($finder) | ||
; | ||
} | ||
|
||
$finder = DefaultFinder::create()->in( | ||
[ | ||
'library', | ||
'tests', | ||
]); | ||
|
||
return Config::create() | ||
->level('psr2') | ||
->setUsingCache(true) | ||
->finder($finder); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
comment: | ||
layout: "diff, files" | ||
behavior: default | ||
require_changes: true # if true: only post the comment if coverage changes | ||
require_base: yes # [yes :: must have a base report to post] | ||
require_head: yes # [yes :: must have a head report to post] |
Oops, something went wrong.