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