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 296a9c4 commit fde7db2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ jobs:
matrix:
php-version: [8.1, 8.2]
dependencies: ["", "--prefer-lowest --prefer-stable"]
execute-cs-check: [false]
test-coverage: [false]
include:
- php-version: 8.2
dependencies: ""
execute-cs-check: true
test-coverage: true

env:
COMPOSER_CACHE_DIR: ${{ github.workspace }}/.composer/cache
Expand All @@ -31,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 @@ -70,16 +63,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 fde7db2

Please sign in to comment.