12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- name: Tests
- on:
- push:
- branches: [master]
- pull_request:
- jobs:
- test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- php:
- - '7.4'
- - '8.0'
- - '8.1'
- deps:
- - stable
- - lowest
- - dingo
- exclude:
- - {php: '8.0', deps: dingo}
- - {php: '8.0', deps: lowest}
- - {php: '8.1', deps: dingo}
- - {php: '8.1', deps: lowest}
- name: Tests (PHP ${{ matrix.php }} - ${{ matrix.deps }})
- steps:
- - uses: actions/checkout@v2
- - name: Setup PHP ${{ matrix.php }}
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
- coverage: none
- - name: Install dependencies
- if: ${{ matrix.deps == 'stable' }}
- run: composer update --prefer-stable;
- - name: Install dependencies (Dingo)
- if: ${{ matrix.deps == 'dingo' }}
- run: COMPOSER=composer.dingo.json composer update --prefer-stable;
- - name: Install dependencies (lowest)
- if: ${{ matrix.deps == 'lowest' }}
- run: COMPOSER=composer.lowest.json composer update --prefer-stable;
- - name: Execute tests (Laravel/Lumen)
- run: composer test-ci
- if: ${{ matrix.deps != 'dingo' }}
- - name: Execute tests (Dingo)
- run: COMPOSER=composer.dingo.json composer test-ci
- if: ${{ matrix.deps == 'dingo' }}
|