MUL-12 allow id in Field class to be null #236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
- '[0-9].[0-9]+' | |
pull_request: ~ | |
jobs: | |
tests: | |
name: ${{ matrix.php }} ${{ matrix.coverage }} ${{ matrix.kernel }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: '8.1' | |
phpunit: 'phpunit.xml' | |
coverage: 'unit' | |
- php: '8.1' | |
phpunit: 'phpunit-integration-legacy.xml' | |
coverage: 'integration' | |
- php: '8.2' | |
phpunit: 'phpunit.xml' | |
coverage: 'unit' | |
- php: '8.2' | |
phpunit: 'phpunit-integration-legacy.xml' | |
coverage: 'integration' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- run: composer require --no-update ezsystems/ezpublish-kernel="${{ matrix.kernel }}" | |
if: matrix.kernel | |
- run: composer --version | |
- run: composer validate --strict | |
- run: composer update --prefer-dist | |
- run: vendor/bin/phpunit -c ${{ matrix.phpunit }} --colors=always --coverage-clover=coverage.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |