Skip to content

Commit 5ac08c0

Browse files
authored
Merge pull request #4 from Dhii/release/0.1
2 parents 33b65b8 + fc8ca67 commit 5ac08c0

25 files changed

+4588
-0
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

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BASE_PATH=./
2+
BUILD_ROOT_PATH=/app/
3+
PROJECT_NAME=me_library
4+
5+
PHP_BUILD_VERSION=7.2
6+
PHP_TEST_VERSION=7.2
7+
8+
HOST_IP_ADDRESS=127.0.0.1
9+
10+

.gitattributes

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
tests export-ignore
2+
nbproject export-ignore
3+
.idea export-ignore
4+
.codeclimate.yml export-ignore
5+
.php_cs export-ignore
6+
phpcs.xml export-ignore
7+
phpcs.xml.dist export-ignore
8+
psalm.xml export-ignore
9+
psalm.xml.dist export-ignore
10+
.travis.yml export-ignore
11+
.gitattributes export-ignore
12+
.gitignore export-ignore
13+
composer.lock export-ignore
14+
phpunit.xml export-ignore
15+
phpunit.xml.dist export-ignore
16+
docker export-ignore
17+
18+
* text eol=lf
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 update --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=false --threads=8 --diff
32+
33+
- name: PHPCS
34+
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/vendor/
2+
/build/
3+
/.idea/workspace.xml
4+
/.idea/codeStyles/
5+
/.idea/inspectionProfiles/
6+
/.idea/misc.xml
7+
/.env
8+
9+
/.phpunit.result.cache

.idea/modules.xml

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

.idea/php-project.iml

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

.idea/php-test-framework.xml

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

.idea/php.xml

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

.idea/phpunit.xml

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

0 commit comments

Comments
 (0)