Remove RexVars: REX_ARTICLE, REX_CATEGORY #7614
Workflow file for this run
This file contains hidden or 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: Unit tests | |
| on: | |
| push: | |
| branches: [temp] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| phpunit: | |
| runs-on: ${{ matrix.os || 'ubuntu-latest' }} | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: write # for Git to git apply | |
| strategy: | |
| matrix: | |
| include: | |
| - php-version: '8.4' | |
| db-image: 'mysql:8.0' | |
| composer-flags: '--prefer-lowest' | |
| - php-version: '8.5' | |
| db-image: 'mysql:8.4' | |
| - php-version: '8.6' | |
| db-image: 'mysql:latest' | |
| composer-flags: '--ignore-platform-req=php' | |
| - php-version: '8.4' | |
| db-image: 'mariadb:10.4' | |
| - php-version: '8.5' | |
| db-image: 'mariadb:latest' | |
| # https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers | |
| services: | |
| mysql: | |
| image: ${{ matrix.db-image }} | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="${{ matrix.db-image == 'mariadb:latest' && 'mariadb-admin' || 'mysqladmin' }} ping" | |
| --health-interval=10s --health-timeout=5s --health-retries=3 | |
| ${{ matrix.db-image == 'mysql:8.4' && '-e MYSQL_ROOT_PASSWORD=root --entrypoint sh mysql:8.4 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"' || '' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: gd, intl, pdo_mysql | |
| coverage: none # disable xdebug, pcov | |
| - name: Composer install | |
| uses: ramsey/composer-install@v4 | |
| with: | |
| composer-options: ${{ matrix.composer-flags }} | |
| - name: Setup Problem Matchers for PHPUnit | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: Setup REDAXO | |
| run: | | |
| mysql -uroot -h127.0.0.1 -proot -e 'create database redaxo6;' | |
| php .tools/bin/console setup:run -n --lang=de_de --db-host=127.0.0.1 --db-name=redaxo6 --db-password=root --db-createdb=no --db-setup=normal --admin-username=admin --admin-password=adminpassword --error-email=test@redaxo.invalid --ansi -v | |
| php .tools/bin/console config:set --type boolean debug.enabled true -v | |
| php .tools/bin/console config:set --type boolean debug.throw_always_exception true -v | |
| .tools/bin/console addon:install test -v | |
| .tools/bin/console system:report -v | |
| - name: Run phpunit | |
| run: vendor/bin/phpunit --colors=always |