Skip to content

Commit 7d5cd8c

Browse files
authored
Merge pull request #1 from wp-oop/task/initial-interfaces
2 parents 1f4669c + 333cff0 commit 7d5cd8c

22 files changed

+3284
-705
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 4
8+
9+
[*.js]
10+
indent_size = 2
11+
12+
[*.json]
13+
indent_size = 2
14+
15+
[*.yml]
16+
indent_size = 2

.env.example

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
BASE_PATH=./
2-
PROJECT_NAME=wp-oop_wordpress-interface
2+
BUILD_ROOT_PATH=/app/
3+
PROJECT_NAME=dhii_wordpress-interface
4+
5+
PHP_BUILD_VERSION=7.1
6+
PHP_TEST_VERSION=7.1
7+
8+
HOST_IP_ADDRESS=127.0.0.1

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ docker export-ignore
55
composer.lock export-ignore
66
.gitattributes export-ignore
77
tests export-ignore
8+
9+
* text eol=lf

.github/workflows/continuous-integration.yml

+26-18
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,30 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
php-versions: ['7.1', '7.2', '7.3', '7.4']
8+
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
9+
910
steps:
10-
- uses: actions/checkout@v2
11-
- name: Analysing source code
12-
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
13-
- name: Validate composer.json and composer.lock
14-
run: composer validate
15-
- name: Install dependencies
16-
run: composer install --prefer-dist --no-progress --no-suggest
17-
- name: Setup PHP
18-
uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: ${{ matrix.php-versions }}
21-
- name: PhpUnit
22-
run: ./vendor/bin/phpunit
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26-
if: failure()
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: ${{ matrix.php-versions }}
17+
18+
- name: Analysing source code
19+
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
20+
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
24+
- name: Install dependencies
25+
run: composer update --prefer-dist --no-progress
26+
27+
- name: PhpUnit
28+
run: ./vendor/bin/phpunit
29+
30+
- name: Psalm
31+
run: ./vendor/bin/psalm --show-info=false --threads=8 --diff
32+
33+
- name: PHPCS
34+
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1

.idea/php-test-framework.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

+87-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/remote-mappings.xml

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/wordpress-interface.iml

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)