Skip to content

Commit

Permalink
Merge pull request #1 from Micro-PHP/chore/test-tools-update
Browse files Browse the repository at this point in the history
Chore: tests
  • Loading branch information
Asisyas committed May 8, 2023
2 parents 05ef382 + 49b2cea commit 117f8af
Show file tree
Hide file tree
Showing 14 changed files with 6,581 additions and 2,954 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; top-most EditorConfig file
root = true

; Unix-style newlines
[*]
end_of_line = LF

[{*.php,.ya?ml,.xml}]
indent_style = space
indent_size = 4
6 changes: 6 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
restore-keys: |
${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
- name: Test tools install
run: |
cd tests/tools/psalm; composer install; cd ../../..;
cd tests/tools/phpstan; composer install; cd ../../..;
cd tests/tools/php-cs-fixer; composer install; cd ../../..;
- name: Composer install
uses: ramsey/composer-install@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/.idea/
/vendor/
/var/
.env.local
.phpunit.result.cache
node_modules
/public/build
/node_modules/
yarn-debug.log*
yarn-error.log*
/public/build/
Empty file added assets/images/.gitkeep
Empty file.
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}
],
"require": {
"php": ">=8.2",
"micro/kernel-app": "^1.6",
"micro/autowire": "^1.6",
"micro/plugin-configuration-helper": "^1.6",
Expand All @@ -23,10 +24,7 @@
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9",
"vimeo/psalm": "^5",
"friendsofphp/php-cs-fixer": "^3.13"
"phpunit/phpunit": "^10.1"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -64,16 +62,16 @@
"@test-unit"
],
"test-phpstan": [
"php vendor/bin/phpstan"
"php tests/tools/phpstan/vendor/bin/phpstan"
],
"test-psalm": [
"php vendor/bin/psalm"
"php tests/tools/psalm/vendor/bin/psalm"
],
"test-php-cs-try": [
"PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no"
"PHP_CS_FIXER_IGNORE_ENV=1 php tests/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no"
],
"test-php-cs-fix": [
"PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --verbose --using-cache=no"
"PHP_CS_FIXER_IGNORE_ENV=1 php tests/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --verbose --using-cache=no"
],
"test-unit": [
"php vendor/bin/phpunit"
Expand Down
Loading

0 comments on commit 117f8af

Please sign in to comment.