Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project configuration #1

Draft
wants to merge 1 commit into
base: 0.1.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 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
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BASE_PATH=./
BUILD_ROOT_PATH=/app/
PROJECT_NAME=wp-oop_events

PHP_BUILD_VERSION=7.2
PHP_TEST_VERSION=7.2

HOST_IP_ADDRESS=127.0.0.1


22 changes: 11 additions & 11 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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
tests export-ignore
.idea export-ignore
phpcs.xml.dist export-ignore
psalm.xml.dist export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml.dist export-ignore
docker export-ignore

* text eol=lf
37 changes: 37 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
uses: ramsey/composer-install@v1
with:
dependency-versions: highest
composer-options: "--prefer-dist"

- 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
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/nbproject/private
/vendor/
/test/log/
/test/coverage/
/.idea/dictionaries/
/.idea/codeStyles/
/.idea/tasks.xml
/build/
/.idea/workspace.xml
/.idea/deployment.xml
/.idea/codeStyles/
/.idea/inspectionProfiles/
/.idea/misc.xml
/.env

/.phpunit.result.cache
4 changes: 4 additions & 0 deletions .idea/dataSources.local.xml

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

58 changes: 48 additions & 10 deletions .idea/wp-events.iml → .idea/events.iml

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

2 changes: 1 addition & 1 deletion .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