Improved tests for mysql2 and trilogy #190
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ruby: 3.4 | |
| gemfile: Gemfile | |
| - ruby: 3.3 | |
| gemfile: gemfiles/rails72.gemfile | |
| - ruby: 3.2 | |
| gemfile: gemfiles/rails71.gemfile | |
| - ruby: 3.1 | |
| gemfile: gemfiles/rails70.gemfile | |
| env: | |
| BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
| TEST_ANOMALY_DETECTION: 1 | |
| TEST_PROPHET: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - uses: ankane/setup-postgres@v1 | |
| with: | |
| database: blazer_test | |
| - run: bundle exec rake test | |
| - run: bundle exec rake test:postgresql | |
| - run: bundle exec rake test:sqlite | |
| - uses: ankane/setup-mysql@v1 | |
| with: | |
| database: blazer_test | |
| - run: ADAPTER=mysql2 bundle exec rake test | |
| - run: bundle exec rake test:mysql | |
| - run: ADAPTER=trilogy bundle exec rake test | |
| - run: MYSQL_ADAPTER=trilogy bundle exec rake test:mysql |