-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
json_path: coveralls-upload.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
open-pull-requests-limit: 10 | ||
versioning-strategy: increase |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Tests | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
tests: | ||
name: Tests PHP ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ 7.4, 8.0, 8.1 ] | ||
experimental: [ false ] | ||
include: | ||
- php: 8.1 | ||
analysis: true | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Coding standards | ||
if: matrix.analysis | ||
run: vendor/bin/phpcs | ||
|
||
- name: Static analysis | ||
if: matrix.analysis | ||
run: vendor/bin/phpstan | ||
|
||
- name: Tests | ||
run: vendor/bin/phpunit --coverage-clover clover.xml | ||
|
||
- name: Upload coverage results to Coveralls | ||
if: matrix.analysis | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer require php-coveralls/php-coveralls -n -W | ||
vendor/bin/php-coveralls --coverage_clover=clover.xml -v |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ | |
|
||
# Embedded web-server pid file | ||
/.web-server-pid | ||
/.idea/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Options All -Indexes | ||
|
||
<Files .htaccess> | ||
order allow,deny | ||
deny from all | ||
</Files> | ||
|
||
<IfModule mod_rewrite.c> | ||
# Redirect to the public folder | ||
RewriteEngine On | ||
# RewriteBase / | ||
RewriteRule ^$ public/ [L] | ||
RewriteRule (.*) public/$1 [L] | ||
|
||
# Redirect to HTTPS | ||
# RewriteEngine On | ||
# RewriteCond %{HTTPS} off | ||
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | ||
</IfModule> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":1,"defects":[],"times":{"Tests\\Application\\Actions\\ActionTest::testActionSetsHttpCodeInRespond":0.058,"Tests\\Application\\Actions\\ActionTest::testActionSetsHttpCodeRespondData":0,"Tests\\Application\\Actions\\User\\ListUserActionTest::testAction":0.048,"Tests\\Application\\Actions\\User\\ViewUserActionTest::testAction":0.001,"Tests\\Application\\Actions\\User\\ViewUserActionTest::testActionThrowsUserNotFoundException":0.002,"Tests\\Domain\\User\\UserTest::testGetters with data set #0":0,"Tests\\Domain\\User\\UserTest::testGetters with data set #1":0,"Tests\\Domain\\User\\UserTest::testGetters with data set #2":0,"Tests\\Domain\\User\\UserTest::testGetters with data set #3":0,"Tests\\Domain\\User\\UserTest::testGetters with data set #4":0,"Tests\\Domain\\User\\UserTest::testJsonSerialize with data set #0":0,"Tests\\Domain\\User\\UserTest::testJsonSerialize with data set #1":0,"Tests\\Domain\\User\\UserTest::testJsonSerialize with data set #2":0,"Tests\\Domain\\User\\UserTest::testJsonSerialize with data set #3":0,"Tests\\Domain\\User\\UserTest::testJsonSerialize with data set #4":0,"Tests\\Infrastructure\\Persistence\\User\\InMemoryUserRepositoryTest::testFindAll":0,"Tests\\Infrastructure\\Persistence\\User\\InMemoryUserRepositoryTest::testFindAllUsersByDefault":0,"Tests\\Infrastructure\\Persistence\\User\\InMemoryUserRepositoryTest::testFindUserOfId":0,"Tests\\Infrastructure\\Persistence\\User\\InMemoryUserRepositoryTest::testFindUserOfIdThrowsNotFoundException":0}} |