Skip to content

Commit

Permalink
Update slevomat/coding-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 22, 2023
1 parent 900bd69 commit 57f6787
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-slevomat-coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ jobs:
with:
repository: slevomat/coding-standard
path: slevomat-cs
ref: 8.7.1
ref: 710c256bf3f0f696ec8d4f9d2218321c3eb0f7d2

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"

- name: "Unset platform"
working-directory: slevomat-cs
run: "composer config --unset platform"

- name: "Install dependencies"
working-directory: slevomat-cs
run: "composer install --no-interaction --no-progress"
Expand All @@ -56,12 +60,14 @@ jobs:

- name: "Tests"
working-directory: slevomat-cs
run: "bin/phpunit"
run: "bin/phpunit --no-coverage"

- name: "PHPStan"
if: matrix.php-version == '8.0' || matrix.php-version == '8.1' || matrix.php-version == '8.2'
working-directory: slevomat-cs
run: "bin/phpstan analyse -c build/PHPStan/phpstan.neon"

- name: "PHPStan in tests"
if: matrix.php-version == '8.0' || matrix.php-version == '8.1' || matrix.php-version == '8.2'
working-directory: slevomat-cs
run: "bin/phpstan analyse -c build/PHPStan/phpstan.tests.neon"

0 comments on commit 57f6787

Please sign in to comment.