Merge pull request #38 from tlsqr/fix-double-serialization #60
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| php-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:5.6 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: true | |
| MYSQL_USER: mutate | |
| MYSQL_PASSWORD: secret | |
| MYSQL_DATABASE: circle-test | |
| ports: | |
| - 3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.1', '8.2', '8.3', '8.4'] | |
| laravel: ['10.*', '11.*', '12.*'] | |
| include: | |
| - laravel: '10.*' | |
| testbench: '8.*' | |
| - laravel: '11.*' | |
| testbench: '9.*' | |
| - laravel: '12.*' | |
| testbench: '10.*' | |
| exclude: | |
| # Laravel 10 supports PHP 8.1-8.3 | |
| - laravel: '10.*' | |
| php: '8.4' | |
| # Laravel 11 supports PHP 8.2-8.4 | |
| - laravel: '11.*' | |
| php: '8.1' | |
| # Laravel 12 supports PHP 8.2-8.4 | |
| - laravel: '12.*' | |
| php: '8.1' | |
| name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick | |
| coverage: none | |
| tools: composer:v2 | |
| - name: Install PHP dependencies | |
| run: | | |
| composer require --dev "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | |
| composer update --prefer-stable --no-interaction --no-progress | |
| - name: Execute Unit Tests | |
| run: vendor/bin/phpunit --testsuite Unit | |
| - name: Execute Integration Tests | |
| run: vendor/bin/phpunit --testsuite Integration | |
| env: | |
| DB_PORT: ${{ job.services.mysql.ports[3306] }} | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyze |