Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Created a temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 committed Jan 10, 2024
1 parent ed93a1e commit 87c47be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Lint
run: |
error=0
for file in $(find upload -type f -name "*.php" ! -path 'upload/system/storage/vendor/*'); do
for file in $(find upload -type f -name "*.php" ! -path 'upload/temp/vendor/*'); do
php -l -n $file | grep -v "No syntax errors detected" && error=1
done
if [ $error -eq 1 ]; then
Expand All @@ -49,16 +49,16 @@ jobs:
./.cache
./.php-cs-fixer.cache
key: OC3.0-PHP${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: OC3.0-PHP${{ matrix.php }}-
restore-keys: OC1.5-PHP${{ matrix.php }}-

- name: PHPStan
run: |
composer require phpstan/phpstan 1.10.55
./upload/system/storage/vendor/bin/phpstan analyze --no-progress
./upload/temp/vendor/bin/phpstan analyze --no-progress
- name: Code style
if: matrix.php == '8.3'
run: |
composer require --dev -w friendsofphp/php-cs-fixer v3.46.0
./upload/system/storage/vendor/bin/php-cs-fixer fix --dry-run --diff --ansi || true
./upload/system/storage/vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
./upload/temp/vendor/bin/php-cs-fixer fix --dry-run --diff --ansi || true
./upload/temp/vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ parameters:
- ./upload/admin/index.php
- ./upload/catalog/controller/payment/authorizenet_sim.php
- ./upload/admin/model/setting/extension.php
- ./upload/temp/
tmpDir: .cache
ignoreErrors:

0 comments on commit 87c47be

Please sign in to comment.