Skip to content

wip dorp me

wip dorp me #70

Workflow file for this run

name: Test
on:
push:
jobs:
php-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.php-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: composer.json
sparse-checkout-cone-mode: false
- uses: typisttech/php-matrix-action@main
id: php-matrix
pest:
runs-on: ubuntu-latest
needs: php-matrix
strategy:
matrix:
php: ${{ fromJSON(needs.php-matrix.outputs.matrix).versions }}
dependency-versions: [lowest, highest]
coverage: [none]
exclude:
- php: ${{ fromJSON(needs.php-matrix.outputs.matrix).highest }}
dependency-versions: highest
coverage: none
include:
- php: ${{ fromJSON(needs.php-matrix.outputs.matrix).highest }}
dependency-versions: highest
coverage: xdebug
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependency-versions }}
- run: composer test:with-coverage
if: ${{ matrix.coverage == 'xdebug' }}
- run: composer test:without-coverage
if: ${{ matrix.coverage != 'xdebug' }}