Skip to content

Commit

Permalink
use local fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdevelopment committed Jun 18, 2024
1 parent 96ff70a commit f717b3d
Show file tree
Hide file tree
Showing 4 changed files with 1,109 additions and 73 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ jobs:
sudo mv /home/runner/work/wirhub-app/wirhub-app/.env* /var/www/wirhub
sudo chown -R www-data:www-data /var/www
- name: Composer install
run: sudo -u www-data composer install --prefer-dist --no-progress --no-scripts --working-dir /var/www/wirhub

- name: PHP CS Fixer
run: /var/www/wirhub/vendor/bin/php-cs-fixer check /var/www/wirhub

- name: Prepare symfony
run: |
sudo -u www-data composer install --prefer-dist --no-progress --no-scripts --working-dir /var/www/wirhub
sudo -u www-data composer dump-env test --working-dir /var/www/wirhub
sudo -u www-data php /var/www/wirhub/bin/console cache:clear
sudo -u www-data php /var/www/wirhub/bin/console assets:install public/
Expand All @@ -42,11 +47,6 @@ jobs:
run: |
sudo chmod -R 777 /var/www/wirhub
- name: PHP-CS-Fixer
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3-php8.2
with:
args: check ../../var/www/wirhub/

- name: Finish webserver
run: |
sudo rm /etc/apache2/sites-available/000-default.conf
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"ext-sqlite3": "*",
"dg/bypass-finals": "^1.4",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"friendsofphp/php-cs-fixer": "^3.59",
"liip/test-fixtures-bundle": "^2.6",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.5",
Expand Down
Loading

0 comments on commit f717b3d

Please sign in to comment.