Skip to content

Add catalog-info.yaml config file #45

Add catalog-info.yaml config file

Add catalog-info.yaml config file #45

Workflow file for this run

---
name: ActiveRecord DynamicTimeout
on: [push]
jobs:
unit-test:
name: Base Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
- 3.2
- 3.3
gemfile:
- "gemfiles/activerecord_6_1.gemfile"
- "gemfiles/activerecord_7_0.gemfile"
- "gemfiles/activerecord_7_1.gemfile"
- "gemfiles/activerecord_7_2.gemfile"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.5.5
bundler-cache: true
- run: bundle exec rspec --tag ~@mysql2 --tag ~@trilogy --tag ~@postgresql
mysql-tests:
name: MySQL Tests
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_DATABASE: mysql2_dynamic_timeout_test
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
- 3.2
- 3.3
gemfile:
- "gemfiles/activerecord_6_1.gemfile"
- "gemfiles/activerecord_7_0.gemfile"
- "gemfiles/activerecord_7_1.gemfile"
- "gemfiles/activerecord_7_2.gemfile"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
DATABASE_MYSQL_HOST: 127.0.0.1
DATABASE_MYSQL_USERNAME: user
DATABASE_MYSQL_PASSWORD: password
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.5.5
bundler-cache: true
- run: bundle exec rspec --tag mysql2
trilogy-tests:
name: Trilogy Tests
runs-on: ubuntu-latest
services:
mysql:
image: bitnami/mysql:8.0
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: trilogy_dynamic_timeout_test
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
- 3.2
- 3.3
gemfile:
- gemfiles/activerecord_7_1.gemfile
- gemfiles/activerecord_7_2.gemfile
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
DATABASE_MYSQL_HOST: 127.0.0.1
DATABASE_MYSQL_USERNAME: user
DATABASE_MYSQL_PASSWORD: password
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.5.5
bundler-cache: true
- run: bundle exec rspec --tag trilogy
postgresql-tests:
name: PostgreSQL Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: postgres_dynamic_timeout_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
- 3.2
- 3.3
gemfile:
- "gemfiles/activerecord_6_1.gemfile"
- "gemfiles/activerecord_7_0.gemfile"
- "gemfiles/activerecord_7_1.gemfile"
- "gemfiles/activerecord_7_2.gemfile"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
DATABASE_PASSWORD: password
DATABASE_USERNAME: user
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.5.5
bundler-cache: true
- run: bundle exec rspec --tag postgresql
build_success:
name: Build Success
runs-on: ubuntu-latest
needs:
- unit-test
- mysql-tests
- trilogy-tests
- postgresql-tests
steps:
- run: echo Done!