Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
php-version: '7.4'

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -61,11 +61,13 @@ jobs:
path: vendor
key: php-${{ hashFiles('composer.lock') }}

- name: Composer Install
run: composer install --prefer-dist
- run: composer install

- run: composer install
working-directory: ./tests

- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no
run: ./tests/vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no

php-unit:
strategy:
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
->getFinder()
->in(__DIR__)
->exclude('vendor')
->exclude('tests/vendor')
->exclude('node_modules')
->exclude('storybook/var/cache')
->exclude('tests/fixtures/checksum-compare');
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ All backend commands should be executed from the root directory.
- `8.0.0`
- `latest`

- `./vendor/bin/phpunit ./tests/unit/` ⮕ Runs **PHPUnit**, a framework for running unit tests on your PHP code. You can modify the path to target specific test files.
- `./vendor/bin/phpunit ./tests/unit` ⮕ Runs **PHPUnit**, a framework for running unit tests on your PHP code. You can modify the path to target specific test files.

- `./vendor/bin/php-cs-fixer` ⮕ Runs **PHP CS Fixer**, a tool that ensures your PHP code follows the correct coding standards. Add the `fix` option to automatically resolve fixable style issues.
- `./tests/vendor/bin/php-cs-fixer` ⮕ Runs **PHP CS Fixer**, a tool that ensures your PHP code follows the correct coding standards. Add the `fix` option to automatically resolve fixable style issues.

### Frontend

Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
"segmentio/analytics-php": "^1.8",
"symfony/dotenv": "^4.4",
"symfony/http-foundation": "^4.4",
"symfony/console": "^3.4",
"symfony/console": "^4.0",
"twig/twig": "^2.16"
},
"require-dev": {
"phpunit/phpunit": "^5",
"friendsofphp/php-cs-fixer": "^2.19",
"prestashop/php-dev-tools": "^3.16"
"phpunit/phpunit": "^5"
},
"config": {
"preferred-install": "dist",
Expand Down
Loading
Loading