|
88 | 88 | with: |
89 | 89 | token: ${{ secrets.CODECOV_TOKEN }} |
90 | 90 | file: ./coverage.xml |
| 91 | + |
| 92 | + test-php82: |
| 93 | + runs-on: ${{ matrix.os }} |
| 94 | + strategy: |
| 95 | + fail-fast: true |
| 96 | + matrix: |
| 97 | + os: [ubuntu-latest] |
| 98 | + php: [8.2, 8.3] |
| 99 | + laravel: [11.*] |
| 100 | + dependency-version: [prefer-stable] |
| 101 | + |
| 102 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
| 103 | + |
| 104 | + steps: |
| 105 | + - name: Checkout code |
| 106 | + uses: actions/checkout@v1 |
| 107 | + |
| 108 | + - name: Cache dependencies |
| 109 | + uses: actions/cache@v1 |
| 110 | + with: |
| 111 | + path: ~/.composer/cache/files |
| 112 | + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
| 113 | + |
| 114 | + - name: Setup PHP |
| 115 | + uses: shivammathur/setup-php@v2 |
| 116 | + with: |
| 117 | + php-version: ${{ matrix.php }} |
| 118 | + extensions: mbstring |
| 119 | + coverage: xdebug |
| 120 | + |
| 121 | + - name: Install dependencies |
| 122 | + run: | |
| 123 | + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update |
| 124 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
| 125 | +
|
| 126 | + - name: Execute tests |
| 127 | + run: vendor/bin/phpunit --coverage-clover=coverage.xml |
| 128 | + |
| 129 | + - name: Upload coverage to Codecov |
| 130 | + uses: codecov/codecov-action@v1 |
| 131 | + with: |
| 132 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 133 | + file: ./coverage.xml |
| 134 | + |
| 135 | + test-php83: |
| 136 | + runs-on: ${{ matrix.os }} |
| 137 | + strategy: |
| 138 | + fail-fast: true |
| 139 | + matrix: |
| 140 | + os: [ubuntu-latest] |
| 141 | + php: [8.3] |
| 142 | + laravel: [12.*] |
| 143 | + dependency-version: [prefer-stable] |
| 144 | + |
| 145 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
| 146 | + |
| 147 | + steps: |
| 148 | + - name: Checkout code |
| 149 | + uses: actions/checkout@v1 |
| 150 | + |
| 151 | + - name: Cache dependencies |
| 152 | + uses: actions/cache@v1 |
| 153 | + with: |
| 154 | + path: ~/.composer/cache/files |
| 155 | + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
| 156 | + |
| 157 | + - name: Setup PHP |
| 158 | + uses: shivammathur/setup-php@v2 |
| 159 | + with: |
| 160 | + php-version: ${{ matrix.php }} |
| 161 | + extensions: mbstring |
| 162 | + coverage: xdebug |
| 163 | + |
| 164 | + - name: Install dependencies |
| 165 | + run: | |
| 166 | + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update |
| 167 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
| 168 | +
|
| 169 | + - name: Execute tests |
| 170 | + run: vendor/bin/phpunit --coverage-clover=coverage.xml |
| 171 | + |
| 172 | + - name: Upload coverage to Codecov |
| 173 | + uses: codecov/codecov-action@v1 |
| 174 | + with: |
| 175 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 176 | + file: ./coverage.xml |
0 commit comments