Skip to content

Add requests_count measure #40

Add requests_count measure

Add requests_count measure #40

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- 'v*'
jobs:
test:
name: 'Puma ${{ matrix.puma }} on Ruby ${{ matrix.ruby }}'
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: "3.1"
puma: "6"
- ruby: "3.0"
puma: "5"
- ruby: "2.7"
puma: "5"
- ruby: "2.6"
puma: "4"
- ruby: "2.5"
puma: "4"
container:
image: ruby:${{ matrix.ruby }}
env:
CI: true
PUMA_VERSION: ${{ matrix.puma }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
restore-keys: |
bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
bundle-${{ matrix.ruby }}-
- name: Upgrade Bundler to 2.0 (for older Rubies)
run: gem install bundler -v '~> 2.0'
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install
bundle update
- name: Run RSpec
run: bundle exec rspec