Skip to content

Commit de7d938

Browse files
committed
Refactor CI workflow to streamline test execution; replace targeted failing tests with coverage suite and adjust conditions for PHP versions
1 parent c625586 commit de7d938

1 file changed

Lines changed: 19 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,28 @@ jobs:
3939
dependency-versions: ${{ matrix.php == '8.2' && 'lowest' || 'highest' }}
4040

4141
- name: Run Static Analysis (PHPStan)
42+
shell: bash
4243
run: ./vendor/bin/phpstan analyse --no-progress
4344
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.3'
4445

4546
- name: Warm Up TypePHP Cache
47+
shell: bash
4648
run: php bin/typephp cache:warm
4749

48-
- name: Run Targeted Failing Test Suites (Pest)
49-
run: |
50-
./vendor/bin/pest \
51-
tests/TypeChecking/ArraysAndShapes/ArrayAndListTypesTest.php \
52-
tests/TypeChecking/ArraysAndShapes/ClassConstKeyShapeTest.php \
53-
tests/TypeChecking/ArraysAndShapes/OffsetAccessTest.php \
54-
tests/TypeChecking/ArraysAndShapes/UnionAndIntersectionTypesTest.php \
55-
tests/TypeChecking/Boundaries/InlineVariableValidationTest.php \
56-
tests/TypeChecking/Boundaries/LateStaticBindingReturnTest.php \
57-
tests/TypeChecking/Boundaries/MagicMethodsTest.php \
58-
tests/TypeChecking/Boundaries/MagicPropertiesTest.php \
59-
tests/TypeChecking/Boundaries/PropertyValidationTest.php \
60-
tests/TypeChecking/Boundaries/VarAnnotationPrebindingTest.php \
61-
tests/TypeChecking/CallablesAndIterators/CallableAndClosureContractsTest.php \
62-
tests/TypeChecking/Generics/GenericTraitsUseAnnotationTest.php \
63-
tests/TypeChecking/Generics/GenericsAndInheritanceTest.php
50+
- name: Run Test Suite with Coverage (Pest)
51+
shell: bash
52+
run: ./vendor/bin/pest --coverage-clover=clover.xml --compact
53+
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.4'
54+
55+
- name: Upload Coverage to Codecov
56+
uses: codecov/codecov-action@v5
57+
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.4'
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
files: clover.xml
61+
fail_ci_if_error: false
62+
63+
- name: Run Test Suite (Pest)
64+
shell: bash
65+
run: ./vendor/bin/pest --compact
66+
if: "! (matrix.os == 'ubuntu-latest' && matrix.php == '8.4')"

0 commit comments

Comments
 (0)