Skip to content

Commit

Permalink
Fix number of runs sent to Scrutinizer, bump devtool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Feb 4, 2023
1 parent 01096a0 commit a9d84c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
run: composer require --no-update "phpunit/php-code-coverage:${{ matrix.php-code-coverage-version }}"

- name: Remove PHP-CS-Fixer if not called
if: matrix.php-version != '8.0' || matrix.symfony-version != '^5.0' || matrix.dependencies != 'highest'
if: matrix.php-version != '8.1' || matrix.symfony-version != '^5.0' || matrix.dependencies != 'highest'
run: composer remove --dev --no-update "friendsofphp/php-cs-fixer";

- name: Install dependencies (low)
Expand Down Expand Up @@ -146,19 +146,19 @@ jobs:
else
php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --coverage-clover=build/coverage-phpunit/clover.xml;
fi;
if [ "${{ matrix.php-version }}" = "8.0" ] && [ "${{ matrix.driver }}" != "none" ]; then
if [ "${{ matrix.php-version }}" = "8.1" ] && [ "${{ matrix.driver }}" != "none" ]; then
composer global require scrutinizer/ocular;
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-phpunit/clover.xml;
fi;
- name: Behat
run: |
php -dmemory_limit=-1 vendor/behat/behat/bin/behat --strict;
if [ "${{ matrix.php-version }}" = "8.0" ] && [ "${{ matrix.driver }}" != "none" ]; then
if [ "${{ matrix.php-version }}" = "8.1" ] && [ "${{ matrix.driver }}" != "none" ]; then
composer global require scrutinizer/ocular;
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-behat/clover.xml;
fi;
- name: Check code style
if: matrix.php-version == '8.0' && matrix.symfony-version == '^5.0' && matrix.dependencies == 'highest'
if: matrix.php-version == '8.1' && matrix.symfony-version == '^5.0' && matrix.dependencies == 'highest'
run: vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --allow-risky=yes
4 changes: 2 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ checks:

tools:
external_code_coverage:
runs: 8 # Scrutinizer will wait for this many code coverage submissions
runs: 72 # Scrutinizer will wait for this many code coverage submissions
timeout: 600 # Timeout in seconds.

filter:
Expand All @@ -15,7 +15,7 @@ build:
environment:
# Languages
php:
version: "8.0"
version: "8.1"
ini:
memory_limit: "-1"

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"config": {
"preferred-install": {
"phpunit/php-code-coverage": "source",
"*": "dist"
},
"sort-packages": true,
Expand Down

0 comments on commit a9d84c2

Please sign in to comment.