Ensure compatibility with Rack 2.x and 3.x #359
Workflow file for this run
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: Mini Profiler Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
MEMCACHE_SERVERS: localhost:11211 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} (Rack ~> ${{ matrix.rack }}) | |
services: | |
redis: | |
image: "redis" | |
ports: | |
- 6379:6379 | |
memcached: | |
image: memcached:1.6.9 | |
ports: | |
- 11211:11211 | |
options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["3.4", "3.3", "3.2"] | |
rack: ["2.0", "3.0"] | |
env: | |
RACK_VERSION: ${{ matrix.rack }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
rubygems: latest # `gem update --system` is run to update to the latest compatible RubyGems version. | |
- name: Tests | |
run: bundle exec rspec | |
- name: Rubocop | |
run: bundle exec rubocop |