Skip to content

Commit 3c71a40

Browse files
committed
Reorder build test steps
1 parent b63b904 commit 3c71a40

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/php.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ jobs:
7373
if: matrix.experimental
7474
run: composer update --ignore-platform-reqs --prefer-dist --no-progress
7575

76-
- name: Run PHPUnit tests
77-
if: matrix.php-versions != env.code-coverage-version
78-
run: composer run-script phpunit -- --no-coverage
79-
80-
- name: Run PHPUnit tests with coverage
81-
if: matrix.php-versions == env.code-coverage-version
82-
run: composer run-script phpunit
83-
8476
- name: Run PHPStan
8577
if: matrix.php-versions == env.code-coverage-version
8678
run: composer run-script phpstan -- --no-progress
@@ -89,6 +81,14 @@ jobs:
8981
if: matrix.php-versions == env.code-coverage-version
9082
run: composer run-script phpcs -- --report=checkstyle | cs2pr
9183

84+
- name: Run PHPUnit tests
85+
if: matrix.php-versions != env.code-coverage-version
86+
run: composer run-script phpunit -- --no-coverage
87+
88+
- name: Run PHPUnit tests with coverage
89+
if: matrix.php-versions == env.code-coverage-version
90+
run: composer run-script phpunit
91+
9292
# Ensure the next test run fetches the latest test ruleset.
9393
- name: Cleanup composer cache
9494
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)