Skip to content

Commit

Permalink
update github matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jun 17, 2024
1 parent d1c7341 commit f417f9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
matrix:
php-version: [8.1, 8.2]
dependencies: ["", "--prefer-lowest --prefer-stable"]
execute-cs-check: [true, false]
test-coverage: [true, false]

env:
COMPOSER_CACHE_DIR: ${{ github.workspace }}/.composer/cache
Expand All @@ -26,7 +24,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: ${{ matrix.test-coverage }}
coverage: ${{ matrix.php-version == '8.2' && matrix.dependencies == '' }}
extensions: pcov
ini-values: |
memory_limit=-1
Expand Down Expand Up @@ -55,6 +53,7 @@ jobs:
mkdir -p ${{ env.PHP_CS_FIXER_CACHE_DIR }}
- name: Disable Xdebug
if: ${{ matrix.php-version != '8.2' && matrix.dependencies != '' }}
run: sudo phpdismod xdebug

- name: Self-update Composer
Expand All @@ -65,16 +64,16 @@ jobs:

- name: Run tests
run: |
if [ "${{ matrix.test-coverage }}" == "true" ]; then
if [ "${{ matrix.php-version }}" == "8.2" ] && [ "${{ matrix.dependencies }}" == "" ]; then
php ./vendor/bin/phpunit --exclude-group=ignore --coverage-text --coverage-clover ./build/logs/clover.xml
else
./vendor/bin/phpunit --exclude-group=ignore
fi
- name: Run CS check
if: ${{ matrix.execute-cs-check }} == 'true'
if: ${{ matrix.php-version == '8.2' && matrix.dependencies == '' }}
run: ./vendor/bin/php-cs-fixer fix -v --diff --dry-run

- name: Upload coverage to Coveralls
if: ${{ matrix.test-coverage }} == 'true'
if: ${{ matrix.php-version == '8.2' && matrix.dependencies == '' }}
run: php vendor/bin/php-coveralls -v

0 comments on commit f417f9c

Please sign in to comment.