|
41 | 41 | strategy:
|
42 | 42 | fail-fast: false
|
43 | 43 | matrix:
|
44 |
| - php-version: [ '7.2', '7.3', '7.4' ] |
| 44 | + php-version: [ '7.2', '7.3' ] |
| 45 | + coverage: [ 'none' ] |
| 46 | + include: |
| 47 | + - php-version: '7.4' |
| 48 | + coverage: none |
45 | 49 |
|
46 | 50 | steps:
|
47 | 51 | - name: Checkout
|
|
53 | 57 | php-version: ${{ matrix.php-version }}
|
54 | 58 | ini-values: error_reporting=E_ALL
|
55 | 59 | tools: composer:v2
|
56 |
| - coverage: none |
| 60 | + coverage: "${{ matrix.coverage }}" |
57 | 61 |
|
58 | 62 | - name: Show the Composer configuration
|
59 | 63 | run: composer config --global --list
|
|
72 | 76 | composer show;
|
73 | 77 |
|
74 | 78 | - name: Run Tests
|
75 |
| - run: ./vendor/bin/phpunit --coverage-clover build/coverage/xml |
76 |
| - |
77 |
| - coverage: |
78 |
| - name: Coverage |
79 |
| - |
80 |
| - runs-on: ubuntu-22.04 |
81 |
| - |
82 |
| - needs: [ php-lint ] |
83 |
| - |
84 |
| - strategy: |
85 |
| - fail-fast: false |
86 |
| - matrix: |
87 |
| - php-version: [ '7.4' ] |
88 |
| - |
89 |
| - steps: |
90 |
| - - name: Checkout |
91 |
| - uses: actions/checkout@v4 |
92 |
| - |
93 |
| - - name: Install PHP |
94 |
| - uses: shivammathur/setup-php@v2 |
95 |
| - with: |
96 |
| - php-version: ${{ matrix.php-version }} |
97 |
| - ini-values: error_reporting=E_ALL |
98 |
| - tools: composer:v2 |
99 |
| - coverage: xdebug |
100 |
| - |
101 |
| - - name: Show the Composer configuration |
102 |
| - run: composer config --global --list |
103 |
| - |
104 |
| - - name: Cache dependencies installed with composer |
105 |
| - uses: actions/cache@v4 |
106 |
| - with: |
107 |
| - path: ~/.cache/composer |
108 |
| - key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} |
109 |
| - restore-keys: | |
110 |
| - php${{ matrix.php-version }}-composer- |
111 |
| -
|
112 |
| - - name: Install Composer dependencies |
113 |
| - run: | |
114 |
| - composer update --with-dependencies --no-progress; |
115 |
| - composer show; |
116 |
| -
|
117 |
| - - name: Run Tests |
118 |
| - run: ./vendor/bin/phpunit --coverage-clover build/coverage/xml |
119 |
| - |
120 |
| - - name: Upload coverage results to Codacy |
121 |
| - env: |
122 |
| - CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} |
123 |
| - if: "${{ env.CODACY_PROJECT_TOKEN != '' }}" |
124 |
| - run: | |
125 |
| - ./vendor/bin/codacycoverage clover build/coverage/xml |
| 79 | + run: ./vendor/bin/phpunit |
126 | 80 |
|
127 | 81 | static-analysis:
|
128 | 82 | name: Static Analysis
|
|
0 commit comments