Ensure Result#fields and #rows are always arrays #1090
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: CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| pull_request: | |
| jobs: | |
| ruby-debug: | |
| name: "Ruby Head Debug" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: docker login | |
| run: echo $GITHUB_TOKEN | docker login ghcr.io --username trilogy --password-stdin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests | |
| env: | |
| DB_VENDOR: mysql | |
| DB_VERSION: "8.4" | |
| DISTRIBUTION: "debian:bookworm" | |
| RUBY_VERSION: "ruby-dev" | |
| RUBY_BUILD_OPTS: "cppflags='-DRUBY_DEBUG=1'" | |
| TRILOGY_DEFAULT_SSL: "true" | |
| run: script/cibuild | |
| mysql: | |
| name: ${{ format('MySQL {0} ({1}, Ruby {2}, ssl={3})', matrix.db_version, matrix.distribution, matrix.ruby, matrix.default_ssl) }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| db_version: ["8.0", "8.4", "9.6"] | |
| distribution: ["debian:bookworm", "ubuntu:noble", "ubuntu:jammy", "ubuntu:focal"] | |
| default_ssl: ["true"] | |
| ruby: ["4.0.2"] | |
| include: | |
| - distribution: "debian:bookworm" | |
| db_version: "8.0" | |
| ruby: "3.3.10" | |
| default_ssl: "true" | |
| - distribution: "ubuntu:jammy" | |
| db_version: "8.0" | |
| ruby: "3.3.10" | |
| default_ssl: "true" | |
| - distribution: "debian:bookworm" | |
| db_version: "8.0" | |
| ruby: "3.3.10" | |
| default_ssl: "false" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: docker login | |
| run: echo $GITHUB_TOKEN | docker login ghcr.io --username trilogy --password-stdin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests | |
| env: | |
| DB_VENDOR: mysql | |
| DB_VERSION: ${{ matrix.db_version }} | |
| DISTRIBUTION: ${{ matrix.distribution }} | |
| RUBY_VERSION: ${{ matrix.ruby }} | |
| TRILOGY_DEFAULT_SSL: ${{ matrix.default_ssl }} | |
| run: script/cibuild | |
| mariadb: | |
| name: ${{ format('MariaDB {0} ({1}, Ruby {2})', matrix.db_version, matrix.distribution, matrix.ruby) }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| db_version: ["12.1"] | |
| distribution: ["debian:bookworm", "ubuntu:noble", "ubuntu:jammy", "ubuntu:focal"] | |
| ruby: ["4.0.2"] | |
| default_ssl: ["true"] | |
| include: | |
| - ruby: "3.3.10" | |
| distribution: "debian:bookworm" | |
| db_version: "12.1" | |
| default_ssl: "true" | |
| - ruby: "4.0.2" | |
| distribution: "ubuntu:focal" | |
| db_version: "10.6" | |
| default_ssl: "true" | |
| - ruby: "4.0.2" | |
| distribution: "ubuntu:focal" | |
| db_version: "10.11" | |
| default_ssl: "true" | |
| - ruby: "4.0.2" | |
| distribution: "ubuntu:focal" | |
| db_version: "11.4" | |
| default_ssl: "true" | |
| - ruby: "4.0.2" | |
| distribution: "ubuntu:focal" | |
| db_version: "11.8" | |
| default_ssl: "true" | |
| # MariaDB 12.1+ supports caching_sha2_password, so we test with ssl=false | |
| - ruby: "4.0.2" | |
| distribution: "ubuntu:focal" | |
| db_version: "12.1" | |
| default_ssl: "false" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: docker login | |
| run: echo $GITHUB_TOKEN | docker login ghcr.io --username trilogy --password-stdin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests | |
| env: | |
| DB_VENDOR: mariadb | |
| DB_VERSION: ${{ matrix.db_version }} | |
| DISTRIBUTION: ${{ matrix.distribution }} | |
| RUBY_VERSION: ${{ matrix.ruby }} | |
| TRILOGY_DEFAULT_SSL: ${{ matrix.default_ssl }} | |
| run: script/cibuild |