Skip to content

Commit

Permalink
Add slim framework and build app.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmillard committed Mar 26, 2024
1 parent d9cfd16 commit d35f199
Show file tree
Hide file tree
Showing 75 changed files with 5,982 additions and 5,140 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
json_path: coveralls-upload.json
8 changes: 8 additions & 0 deletions .github/dependabot.yml
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
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@

# Embedded web-server pid file
/.web-server-pid
/.idea/
19 changes: 19 additions & 0 deletions .htaccess
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>
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/codeception.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .idea/php-docker-settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 107 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/phpunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions .idea/whatrunningwhere.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .phpunit.result.cache
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}}
Loading

0 comments on commit d35f199

Please sign in to comment.