-
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
1 parent
12b2d7b
commit 94f1e68
Showing
14 changed files
with
1,571 additions
and
2,295 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
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,30 @@ | ||
name: PHP 5.6 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare code | ||
run: | | ||
touch .env | ||
echo "GITHUB_OWNER=likesistemas" >> .env | ||
echo "GITHUB_REPO=codeception-github-reporter" >> .env | ||
echo "GITHUB_PR_NUMBER=${{github.event.number}}" >> .env | ||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> .env | ||
echo "PHP_VERSION=56" >> .env | ||
- name: Run tests | ||
run: | | ||
docker-compose run php composer update | ||
docker-compose up |
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: PHP 7.3 | ||
|
||
on: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare code | ||
run: | | ||
touch .env | ||
echo "GITHUB_OWNER=likesistemas" >> .env | ||
echo "GITHUB_REPO=codeception-github-reporter" >> .env | ||
echo "GITHUB_PR_NUMBER=${{github.event.number}}" >> .env | ||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> .env | ||
echo "PHP_VERSION=73" >> .env | ||
- name: Run tests | ||
run: | | ||
docker-compose run php composer update | ||
docker-compose up |
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: PHP 7.4 | ||
|
||
on: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare code | ||
run: | | ||
touch .env | ||
echo "GITHUB_OWNER=likesistemas" >> .env | ||
echo "GITHUB_REPO=codeception-github-reporter" >> .env | ||
echo "GITHUB_PR_NUMBER=${{github.event.number}}" >> .env | ||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> .env | ||
echo "PHP_VERSION=74" >> .env | ||
- name: Run tests | ||
run: | | ||
docker-compose run php composer update | ||
docker-compose up |
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: PHP 8.0 | ||
|
||
on: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare code | ||
run: | | ||
touch .env | ||
echo "GITHUB_OWNER=likesistemas" >> .env | ||
echo "GITHUB_REPO=codeception-github-reporter" >> .env | ||
echo "GITHUB_PR_NUMBER=${{github.event.number}}" >> .env | ||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> .env | ||
echo "PHP_VERSION=80" >> .env | ||
- name: Run tests | ||
run: | | ||
docker-compose run php composer update | ||
docker-compose up |
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,43 @@ | ||
<?php | ||
|
||
$rules = [ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_short_echo_tag' => true, | ||
'no_unused_imports' => true, | ||
'not_operator_with_successor_space' => true, | ||
'no_useless_else' => true, | ||
'ordered_imports' => ['sort_algorithm' => 'none', 'imports_order' => ['const', 'class', 'function']], | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'phpdoc_indent' => true, | ||
'phpdoc_no_package' => true, | ||
'phpdoc_order' => true, | ||
'phpdoc_separation' => true, | ||
'phpdoc_single_line_var_spacing' => true, | ||
'phpdoc_trim' => true, | ||
'phpdoc_var_without_name' => true, | ||
'phpdoc_to_comment' => true, | ||
'single_quote' => true, | ||
'ternary_operator_spaces' => true, | ||
'trailing_comma_in_multiline_array' => true, | ||
'trim_array_spaces' => true | ||
]; | ||
|
||
$excludes = [ | ||
'vendor' | ||
]; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude($excludes) | ||
->notName('README.md') | ||
->notName('*.xml') | ||
->notName('*.yml') | ||
->notName('_ide_helper.php') | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules($rules) | ||
->setFinder($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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"fterrag.vscode-php-cs-fixer" | ||
] | ||
} |
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,3 +1,9 @@ | ||
{ | ||
"files.encoding": "utf8" | ||
"files.encoding": "utf8", | ||
"[php]": { | ||
"editor.defaultFormatter": "fterrag.vscode-php-cs-fixer" | ||
}, | ||
"php-cs-fixer.onsave": true, | ||
"php-cs-fixer.showOutput": false, | ||
"php-cs-fixer.autoFixByBracket": 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
Oops, something went wrong.