Skip to content

Commit 5429fbe

Browse files
authored
Initial commit
0 parents  commit 5429fbe

26 files changed

+5095
-0
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: 10 additions & 0 deletions
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.4
6+
PHP_TEST_VERSION=8.2
7+
8+
HOST_IP_ADDRESS=host-gateway
9+
10+

.gitattributes

Lines changed: 18 additions & 0 deletions
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
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Continuous Integration
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-versions:
9+
- '7.4'
10+
- '8.0'
11+
- '8.1'
12+
- '8.2'
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
22+
- name: Analysing source code
23+
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
24+
25+
- name: Validate composer.json and composer.lock
26+
run: composer validate
27+
28+
- name: Install dependencies
29+
uses: ramsey/composer-install@v1
30+
with:
31+
dependency-versions: highest
32+
composer-options: "--prefer-dist"
33+
34+
- name: PHPUnit
35+
run: ./vendor/bin/phpunit
36+
37+
- name: Psalm
38+
run: ./vendor/bin/psalm --show-info=false --threads=8 --diff
39+
40+
- name: PHPCS
41+
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1

.gitignore

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

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

.idea/php-project.iml

Lines changed: 72 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)