This repository was archived by the owner on Apr 20, 2026. It is now read-only.
chore: replace reusable-workflows branch references with main (#290) #1081
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: "Codeception Tests" | |
| on: | |
| schedule: | |
| - cron: '0 3 * * 1,3,5' | |
| pull_request: | |
| branches: | |
| - "[0-9]+.[0-9]+" | |
| - "[0-9]+.x" | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'src/Resources/public/**' | |
| push: | |
| branches: | |
| - "[0-9]+.[0-9]+" | |
| - "[0-9]+.x" | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'src/Resources/public/**' | |
| env: | |
| PIMCORE_PROJECT_ROOT: ${{ github.workspace }} | |
| APP_ENV: test | |
| PIMCORE_TEST: 1 | |
| PIMCORE_TEST_DB_DSN: "mysql://root@127.0.0.1:33006/pimcore_test" | |
| jobs: | |
| codeception-tests: | |
| name: "Codeception tests" | |
| runs-on: "ubuntu-latest" | |
| continue-on-error: ${{ matrix.experimental }} | |
| env: | |
| PIMCORE_TEST_DB_DSN: "mysql://root@127.0.0.1:33006/pimcore_test" | |
| strategy: | |
| matrix: | |
| include: | |
| - { php-version: 8.1, database: "mariadb:10.3", dependencies: lowest, pimcore_version: "", experimental: false } | |
| - { php-version: 8.2, database: "mariadb:10.11", dependencies: highest, pimcore_version: "", experimental: false } | |
| - { php-version: 8.3, database: "mariadb:10.11", dependencies: highest, pimcore_version: "", experimental: false } | |
| services: | |
| mariadb: | |
| image: "${{ matrix.database }}" | |
| ports: | |
| - 33006:3306 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| steps: | |
| - name: "Checkout code" | |
| uses: "actions/checkout@v2" | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| coverage: "none" | |
| extensions: imagick | |
| ini-values: display_errors=On, display_startup_errors=On, error_reporting=32767 | |
| php-version: "${{ matrix.php-version }}" | |
| - name: Verify MariaDB connection | |
| run: | | |
| cp .github/ci/files/.my.cnf ~/.my.cnf | |
| while ! mysqladmin ping --silent; do | |
| sleep 1 | |
| done | |
| - name: "Setup Pimcore environment" | |
| run: | | |
| mysql -e "CREATE DATABASE pimcore_test CHARSET=utf8mb4;" | |
| .github/ci/scripts/setup-pimcore-environment.sh | |
| - name: "Update Pimcore version" | |
| env: | |
| PIMCORE_VERSION: "${{ matrix.pimcore_version }}" | |
| run: | | |
| if [ ! -z "$PIMCORE_VERSION" ]; then | |
| composer require --no-update pimcore/pimcore:"${PIMCORE_VERSION}" | |
| fi | |
| - name: "Install dependencies with Composer" | |
| uses: "ramsey/composer-install@v2" | |
| with: | |
| dependency-versions: "${{ matrix.dependencies }}" | |
| - name: "Run Codeception" | |
| run: "vendor/bin/codecept run -c . -vvv --xml" |