-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
978 additions
and
0 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,32 @@ | ||
# http://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.php] | ||
indent_size = 4 | ||
|
||
# Override for blade since its mostly html | ||
[*.blade.php] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# These properties supported by few editors | ||
[*.js] | ||
curly_bracket_next_line = false | ||
spaces_around_operators = true | ||
indent_brace_style = 1TBS | ||
spaces_around_brackets = both | ||
|
||
[*.{scss,css,js,ts,html,json,vue,yml,babelrc,eslintrc}] | ||
indent_size = 2 |
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,15 @@ | ||
# https://git-scm.com/book/en/Customizing-Git-Git-Attributes | ||
|
||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Export ignores | ||
.github export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
phpunit.xml.dist export-ignore | ||
composer.lock export-ignore | ||
CHANGELOG.md export-ignore | ||
tests export-ignore | ||
__test__ export-ignore |
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,24 @@ | ||
**I'm submitting a ...** (check one with "x") | ||
|
||
``` | ||
[ ] Bug report => search github for a similar issue or PR before submitting | ||
[ ] Feature request | ||
[ ] Other, please describe | ||
``` | ||
|
||
**Tell about your platform** | ||
|
||
* Laravel version : 9.x | ||
* php version : 8.1 | ||
|
||
**Current behavior** | ||
<!-- Describe how the bug manifests. --> | ||
|
||
**Expected behavior** | ||
<!-- Describe what the behavior would be without the bug. --> | ||
|
||
**Minimal reproduction of the problem with instructions** | ||
<!-- | ||
If the current behavior is a bug, or you can illustrate your feature request better with an example, | ||
please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem. | ||
--> |
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,51 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
schedule: | ||
- cron: '0 0 12 * *' | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ 8.1, 8.2 ] | ||
laravel: [ 9, 10 ] | ||
|
||
name: PHP ${{ matrix.php }} - Laravel v${{ matrix.laravel }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: ctype, dom, json, mbstring, openssl, xml, zip, zlib | ||
ini-values: error_reporting=E_ALL | ||
coverage: pcov | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update | ||
composer update --prefer-dist --no-interaction --no-progress | ||
- name: Execute tests | ||
run: composer test:coverage | ||
|
||
- name: Upload coverage report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: false |
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,51 @@ | ||
# http://git-scm.com/docs/gitignore | ||
|
||
# various IDEs | ||
.idea/ | ||
.vscode/ | ||
|
||
# logs and cache | ||
*.log | ||
npm-debug.log* | ||
.sass-cache | ||
.cache | ||
.php_cs.cache | ||
|
||
# OS generated files | ||
[Tt]humbs.db | ||
ehthumbs.db | ||
*~ | ||
.*~ | ||
._* | ||
*.bak | ||
*.save | ||
*.swp | ||
|
||
# Recycle bin folder used by different os | ||
.Trash-* | ||
$RECYCLE.BIN/ | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
*.DS_Store | ||
.DS_Store? | ||
|
||
# 3rd party | ||
node_modules/ | ||
/vendor/ | ||
composer.phar | ||
/composer.lock | ||
|
||
# Security tokens | ||
*.pem | ||
*.pub | ||
*.crt | ||
*.key | ||
|
||
# Other | ||
.phpunit.result.cache | ||
phpunit.xml | ||
coverage.xml |
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,5 @@ | ||
# Changelog | ||
|
||
## 1.0.0 | ||
|
||
* Initial release |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Ankur Kumar | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.