Skip to content

Commit cc3dd7f

Browse files
authored
Merge pull request #29 from wp-oop/release/0.2.0
Release/0.2.0
2 parents c0af33d + 656eb92 commit cc3dd7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6330
-65
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

Lines changed: 0 additions & 21 deletions
This file was deleted.

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ DOCROOT_PATH=/var/www/html
55
BUILD_ROOT_PATH=/app/
66
PROJECT_NAME=me_plugin
77

8-
PHP_BUILD_VERSION=7.1
8+
PHP_BUILD_VERSION=7.2
99
PHP_TEST_VERSION=7.4
10+
WORDPRESS_VERSION=5.6
1011

11-
DB_ROOT_PASSWORD=
12+
DB_ROOT_PASSWORD=root
1213
DB_NAME=wordpress
1314
DB_USER_NAME=wordpress
1415
DB_USER_PASSWORD=H(EH0238fry2

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ composer.lock export-ignore
1414
phpunit.xml export-ignore
1515
phpunit.xml.dist export-ignore
1616
docker export-ignore
17+
18+
* text eol=lf
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous Integration
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-versions: ['7.2', '7.3', '7.4', '8.0']
9+
10+
steps:
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 install --prefer-dist --no-progress --no-suggest
26+
27+
- name: PhpUnit
28+
run: ./vendor/bin/phpunit
29+
30+
- name: Psalm
31+
run: ./vendor/bin/psalm --show-info --threads=8 --diff
32+
33+
- name: PHPCS
34+
run: ./vendor/bin/phpcs -s --runtime-set ignore_warnings_on_exit 1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
/.idea/codeStyles/
55
/.idea/inspectionProfiles/
66
/.idea/misc.xml
7+
/.env
8+
9+
.phpunit.result.cache

.idea/codestream.xml

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

.idea/dataSources.xml

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

.idea/deployment.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/php-test-framework.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.

0 commit comments

Comments
 (0)