Skip to content

Commit

Permalink
Update ci to use local versions of tools
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Apr 11, 2024
1 parent 151f60d commit 5d0c70a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/quality-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ jobs:
name: Run PHP-CS-Fixer & PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --diff --dry-run
run: ./bin/php-cs-fixer --diff --dry-run

- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
configuration: .phpstan.neon
run: ./bin/phpstan
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion bin/php-cs-fixer
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /usr/bin/env sh

./vendor/bin/php-cs-fixer fix src
./vendor/bin/php-cs-fixer fix src "$@"

0 comments on commit 5d0c70a

Please sign in to comment.