Skip to content

Commit

Permalink
Merge pull request #6 from Dhii/task/upgrade-php8
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown authored Mar 5, 2021
2 parents 541a539 + 27e1ad3 commit 20826a6
Show file tree
Hide file tree
Showing 32 changed files with 2,711 additions and 925 deletions.
21 changes: 0 additions & 21 deletions .codeclimate.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

[*.js]
indent_size = 2

[*.json]
indent_size = 2

[*.yml]
indent_size = 2
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BASE_PATH=./
BUILD_ROOT_PATH=/app/
PROJECT_NAME=dhii_stringable-interface

PHP_BUILD_VERSION=7.1
PHP_TEST_VERSION=7.1

HOST_IP_ADDRESS=127.0.0.1
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ nbproject export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml export-ignore

* text eol=lf
34 changes: 34 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Analysing source code
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer update --prefer-dist --no-progress

- name: PhpUnit
run: ./vendor/bin/phpunit

- name: Psalm
run: ./vendor/bin/psalm --show-info=false --threads=8 --diff

- name: PHPCS
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/vendor/
/nbproject/private/
/test/coverage/
/test/log/
/tests/coverage/
/tests/log/
/.idea/inspectionProfiles/
/.idea/codeStyles/
/.idea/workspace.xml
/.phpunit.result.cache

/.env
6 changes: 6 additions & 0 deletions .idea/codestream.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.

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.

179 changes: 179 additions & 0 deletions .idea/php.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.

23 changes: 23 additions & 0 deletions .idea/remote-mappings.xml

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

Loading

0 comments on commit 20826a6

Please sign in to comment.