Skip to content

Commit

Permalink
Applied CI review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Jul 2, 2024
1 parent c306a61 commit 17a93db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install php-cs-fixer
run: |
mkdir -p tools/php-cs-fixer
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer --dev
composer require --working-dir=tools/php-cs-fixer ibexa/code-style:^1.0 --dev
- uses: "ramsey/composer-install@v3"
with:
working-directory: "tools/php-cs-fixer"
dependency-versions: highest
- name: Run PHP CS Fixer
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots
- name: Commit changes
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ __pycache__/*
**/.idea/
.php-cs-fixer.cache
composer.lock
tools/php-cs-fixer
tools/php-cs-fixer/vendor
6 changes: 6 additions & 0 deletions tools/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.59",
"ibexa/code-style": "^1.0"
}
}

0 comments on commit 17a93db

Please sign in to comment.