Skip to content

Commit a43a06d

Browse files
committed
Ported upgrades to environment
1 parent a5062fd commit a43a06d

16 files changed

+884
-242
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
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

Lines changed: 7 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 26 additions & 18 deletions
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 update --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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 63 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/remote-mappings.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/wordpress-interface.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Dhii - WordPress Interop
2-
Interfaces for interop within WordPress
2+
[![Continuous Integration](https://github.com/wp-oop/wordpress-interface/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/wp-oop/wordpress-interface/actions/workflows/continuous-integration.yml)
3+
[![Latest Stable Version](https://poser.pugx.org/wp-oop/wordpress-interface/v)](http://packagist.org/packages/wp-oop/wordpress-interface)
4+
[![Latest Unstable Version](https://poser.pugx.org/wp-oop/wordpress-interface/v/unstable)](http://packagist.org/packages/wp-oop/wordpress-interface)
5+
6+
Interfaces for interop within WordPress.
37

48
## Details
59
Often, multiple packages need to operate on the various aspects of WordPress,

0 commit comments

Comments
 (0)