Skip to content

Pluggable compression for cache values. #101

Pluggable compression for cache values.

Pluggable compression for cache values. #101

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- run: bundle exec rake rubocop
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: pass
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping -ppass"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
postgres:
image: postgres
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: pass
POSTGRES_DB: test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.2"]
gemfile: ["Gemfile", "Gemfile.rails6"]
database_url:
- "sqlite3:///tmp/test.sqlite3"
- "mysql2://root:pass@127.0.0.1/test"
- "postgres://root:pass@127.0.0.1/test"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
RACK_ENV: test
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: |
bundle exec rake spec