Skip to content

Commit 4689065

Browse files
committed
* tests action tweaks
1 parent f72a407 commit 4689065

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
php-version: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6' ]
17+
php-version: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1818
dependencies: [ stable ]
1919
include:
2020
- php-version: '7.4'
@@ -38,7 +38,6 @@ jobs:
3838
php-version: ${{ matrix.php-version }}
3939
coverage: ${{ (matrix.php-version == '8.5' && matrix.dependencies == 'stable') && 'pcov' || 'none' }}
4040
tools: composer:v2
41-
continue-on-error: ${{ matrix.php-version == '8.6' }}
4241

4342
- name: Get Composer Cache Directory
4443
id: composer-cache
@@ -58,16 +57,18 @@ jobs:
5857
else
5958
composer update --prefer-dist --no-progress --no-interaction --ansi
6059
fi
61-
continue-on-error: ${{ matrix.php-version == '8.6' }}
6260
6361
- name: Run All Quality Assurance & Tests
6462
run: |
6563
if [ "${{ matrix.php-version }}" = "7.4" ] || [ "${{ matrix.dependencies }}" = "lowest" ]; then
66-
phpunit --configuration phpunit.v9.xml --colors=always
64+
./vendor/bin/phpunit --configuration phpunit.v9.xml --colors=always
6765
else
6866
composer test:all
6967
fi
70-
continue-on-error: ${{ matrix.php-version == '8.6' }}
68+
69+
- name: Run Code Coverage (PHP 8.5 Stable Only)
70+
if: matrix.php-version == '8.5' && matrix.dependencies == 'stable'
71+
run: composer test:coverage-action
7172

7273
- name: Upload Coverage to Coveralls
7374
if: matrix.php-version == '8.5' && matrix.dependencies == 'stable'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage",
4747
"test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-text",
4848
"test:report": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-html coverage-report",
49-
"test:coverage-shield": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/logs/clover.xml",
49+
"test:coverage-action": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/logs/clover.xml",
5050
"test:all": [
5151
"@cs:check",
5252
"@stan",

0 commit comments

Comments
 (0)