Skip to content

pro changes

pro changes #1845

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: "${{ matrix.ruby }} / rails ${{ matrix.rails }} / ${{ matrix.database.image }}-${{ matrix.database.version }}"
strategy:
fail-fast: false
matrix:
ruby: ["ruby-3.2", "ruby-3.3", "ruby-3.4"]
rails: ["7.1", "8"] # we test latest and earliest supported versions
database: [
{ image: "redis", version: "7.0.15" },
{ image: "redis", version: "latest" },
{ image: "valkey/valkey", version: "8" },
{ image: "docker.dragonflydb.io/dragonflydb/dragonfly", version: "latest" }
]
env:
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@v6
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-image: ${{ matrix.database.image }}
redis-version: ${{ matrix.database.version }}
- name: Lint ERB files with HERB
run: bundle exec rake lint:herb
- name: Run tests
run: bundle exec rake test