pro changes #1845
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 | |
| 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 |