Skip to content

Commit

Permalink
Merge pull request #6 from Dhii/update
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown authored Jun 1, 2021
2 parents 8ff9388 + a43b96a commit 24e0b20
Show file tree
Hide file tree
Showing 39 changed files with 2,999 additions and 1,251 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
@@ -1,2 +1,10 @@
BASE_PATH=./
PROJECT_NAME=dhii-event_interface
BUILD_ROOT_PATH=/app/

PHP_BUILD_VERSION=7.2
PHP_TEST_VERSION=7.2

HOST_IP_ADDRESS=127.0.0.1


22 changes: 9 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
test export-ignore
nbproject export-ignore
.idea export-ignore
.phan export-ignore
.codeclimate.yml export-ignore
.php_cs export-ignore
.travis.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml export-ignore
.env
.env.example
tests export-ignore
.idea export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml.dist export-ignore
.env.example 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]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['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 --no-suggest

- 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
28 changes: 15 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/vendor/
/nbproject/private/
/test/coverage/
/test/log/
/build/
/.idea/dictionaries/
/.idea/inspectionProfiles
/.idea/workspace.xml
/.idea/tasks.xml
/.idea/deployment.xml
/.idea/vagrant.xml
/.idea/misc.xml
/.env
/vendor/
/nbproject/private/
/tests/coverage/
/tests/log/
/build/
/.idea/dictionaries/
/.idea/inspectionProfiles
/.idea/workspace.xml
/.idea/tasks.xml
/.idea/deployment.xml
/.idea/vagrant.xml
/.idea/misc.xml
/.env
/.idea/dataSources.local.xml
.phpunit.result.cache
44 changes: 22 additions & 22 deletions .idea/bootstrap.iml

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

30 changes: 26 additions & 4 deletions .idea/event-interface.iml

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

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

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

2 changes: 1 addition & 1 deletion .idea/php-test-framework.xml

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

Loading

0 comments on commit 24e0b20

Please sign in to comment.