修正游标查询时json字段未正确解析的问题 #1380
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] | |
| permissions: | |
| contents: read | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - 8.0 | |
| - 8.1 | |
| - 8.2 | |
| experimental: [false] | |
| include: | |
| - php: 8.3 | |
| experimental: true | |
| services: | |
| mysql: | |
| image: mysql:5.7 | |
| env: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: testing | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: testing | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U root" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: pdo, pdo_mysql, mbstring #optional, setup extensions | |
| coverage: none #optional, setup coverage driver | |
| - name: Check Version | |
| run: | | |
| php -v | |
| php -m | |
| composer -V | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Get composer cache directory | |
| id: composercache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache vendor | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: composer-cache | |
| with: | |
| path: ${{ steps.composercache.outputs.dir }} | |
| key: ${{ runner.os }}-${{ matrix.php }}-build-${{ env.cache-name }} | |
| - name: Install dependencies (composer.lock) | |
| run: composer install --prefer-dist --no-progress --no-suggest | |
| - name: Run DB Migrate | |
| run: | | |
| composer bin phinx install | |
| composer run db-migrate | |
| env: | |
| TESTS_DB_MYSQL_HOSTNAME: 127.0.0.1 | |
| TESTS_DB_MYSQL_HOSTPORT: 3306 | |
| TESTS_DB_MYSQL_USERNAME: root | |
| TESTS_DB_MYSQL_PASSWORD: password | |
| TESTS_DB_MYSQL_DATABASE: testing | |
| TESTS_DB_PGSQL_HOSTNAME: 127.0.0.1 | |
| TESTS_DB_PGSQL_HOSTPORT: 5432 | |
| TESTS_DB_PGSQL_USERNAME: root | |
| TESTS_DB_PGSQL_PASSWORD: password | |
| TESTS_DB_PGSQL_DATABASE: testing | |
| - name: Run test suite | |
| run: composer exec -- phpunit --testdox | |
| env: | |
| TESTS_DB_MYSQL_HOSTNAME: 127.0.0.1 | |
| TESTS_DB_MYSQL_HOSTPORT: 3306 | |
| TESTS_DB_MYSQL_USERNAME: root | |
| TESTS_DB_MYSQL_PASSWORD: password | |
| TESTS_DB_MYSQL_DATABASE: testing | |
| TESTS_DB_PGSQL_HOSTNAME: 127.0.0.1 | |
| TESTS_DB_PGSQL_HOSTPORT: 5432 | |
| TESTS_DB_PGSQL_USERNAME: root | |
| TESTS_DB_PGSQL_PASSWORD: password | |
| TESTS_DB_PGSQL_DATABASE: testing |