-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP 8.1+ Laravel 9+ Laravel 6/7- PHP 7.4-
- Changed CI to Github Actions - Updated Code Style Def to PSR-12
- Loading branch information
1 parent
981cf73
commit e28e460
Showing
7 changed files
with
87 additions
and
106 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,6 @@ | ||
Please go through this checklist, it is mandatory to accept your PR | ||
|
||
- [ ] Include the summary of your change. | ||
- [ ] Make sure all the tests are passing | ||
- [ ] Make sure StyleCI is passing | ||
- [ ] In case you add new functionality, it must be covered by tests |
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] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
php: ['8.0', '8.1'] | ||
laravel: ['8.22', '8.81', '9.0'] | ||
enum: ['2', '3'] | ||
exclude: | ||
- php: '8.1' | ||
laravel: '8.22' | ||
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Installing PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring, json, sqlite3 | ||
tools: composer:v2 | ||
- name: Lock Laravel Version | ||
run: | | ||
composer require "konekt/enum:${{ matrix.enum }}.*" --no-update -v | ||
composer require "laravel/framework:${{ matrix.laravel }}.*" --no-update -v | ||
- name: Composer Install | ||
run: composer install --prefer-dist --no-progress --no-interaction | ||
- name: Create Database | ||
run: mkdir -p database && touch database/database.sqlite | ||
- name: Run Tests | ||
run: php vendor/bin/phpunit --testdox |
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,39 +1,32 @@ | ||
preset: psr2 | ||
|
||
preset: psr12 | ||
risky: true | ||
enabled: | ||
- align_phpdoc | ||
- align_double_arrow | ||
- blank_line_before_return | ||
- cast_spaces | ||
- concat_with_spaces | ||
- lowercase_static_reference | ||
- method_separation | ||
- new_with_braces | ||
- no_blank_lines_after_class_opening | ||
- no_blank_lines_after_phpdoc | ||
- no_blank_lines_after_return | ||
- no_blank_lines_between_imports | ||
- no_blank_lines_between_traits | ||
- no_empty_statement | ||
- no_extra_consecutive_blank_lines | ||
- no_leading_namespace_whitespace | ||
- no_null_property_initialization | ||
- no_unused_imports | ||
- no_useless_else | ||
- no_useless_return | ||
- no_whitespace_before_comma_in_array | ||
- no_whitespace_in_blank_line | ||
- object_operator_without_whitespace | ||
- ordered_class_elements | ||
- phpdoc_link_to_see | ||
- phpdoc_no_package | ||
- phpdoc_order | ||
- property_separation | ||
- return_type_declaration | ||
- short_array_syntax | ||
- short_scalar_cast | ||
- single_blank_line_before_namespace | ||
- space_after_semicolon | ||
- ternary_operator_spaces | ||
- ternary_to_null_coalescing | ||
- yoda_style | ||
- align_phpdoc | ||
- alpha_ordered_imports | ||
- cast_spaces | ||
- clean_namespace | ||
- declare_strict_types | ||
- fully_qualified_strict_types | ||
- implode_call | ||
- no_extra_block_blank_lines | ||
- no_extra_consecutive_blank_lines | ||
- no_spaces_inside_offset | ||
- no_spaces_outside_offset | ||
- no_whitespace_before_comma_in_array | ||
- no_unneeded_curly_braces | ||
- no_unneeded_control_parentheses | ||
- no_unneeded_final_method | ||
- no_unused_imports | ||
- no_unused_lambda_imports | ||
- no_useless_sprintf | ||
- normalize_index_brace | ||
- object_operator_without_whitespace | ||
- ordered_class_elements | ||
- print_to_echo | ||
- property_separation | ||
- short_array_syntax | ||
- short_list_syntax | ||
- standardize_not_equals | ||
- unalign_equals | ||
- unalign_double_arrow | ||
- yoda_style |
This file was deleted.
Oops, something went wrong.
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