Skip to content

Always pass resolved siteaccess to avoid missing root Location ID in … #211

Always pass resolved siteaccess to avoid missing root Location ID in …

Always pass resolved siteaccess to avoid missing root Location ID in … #211

Workflow file for this run

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'
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
- run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.coverage }}