Refactor ColumnDefinitionParser
#4715
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
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - '.github/workflows/db-pgsql.yml' | |
| - 'composer.json' | |
| - 'phpunit.xml.dist' | |
| push: | |
| branches: ['master'] | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - '.github/workflows/db-pgsql.yml' | |
| - 'composer.json' | |
| - 'phpunit.xml.dist' | |
| name: db-pgsql | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }} | |
| env: | |
| COMPOSER_ROOT_VERSION: dev-master | |
| EXTENSIONS: pdo, pdo_pgsql | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: | |
| - 8.4 | |
| pgsql: | |
| - 9 | |
| - 10 | |
| - 11 | |
| - 12 | |
| - 13 | |
| - 14 | |
| - 15 | |
| - 16 | |
| - 17 | |
| - 18 | |
| include: | |
| - php: 8.1 | |
| pgsql: 18 | |
| - php: 8.2 | |
| pgsql: 18 | |
| - php: 8.3 | |
| pgsql: 18 | |
| services: | |
| postgres: | |
| image: postgres:${{ matrix.pgsql }} | |
| env: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: root | |
| POSTGRES_DB: yiitest | |
| ports: | |
| - 5432:5432 | |
| options: --name=postgres --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout. | |
| uses: actions/checkout@v4 | |
| - name: Install PHP with extensions. | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: ${{ env.EXTENSIONS }} | |
| ini-values: date.timezone='UTC' | |
| coverage: pcov | |
| - name: Update composer. | |
| run: composer self-update | |
| - name: Install db-pgsql. | |
| uses: yiisoft/actions/install-packages@master | |
| with: | |
| packages: >- | |
| ['db-pgsql'] | |
| - name: Run pgsql tests with phpunit and code coverage. | |
| run: vendor/bin/phpunit --testsuite Pgsql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations | |
| - name: Upload coverage to Codecov. | |
| if: matrix.php == '8.4' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml |