Skip to content

Refresh CI setup: test against newer Rubies, use official actions #41

Refresh CI setup: test against newer Rubies, use official actions

Refresh CI setup: test against newer Rubies, use official actions #41

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.3"
puma: "6"
- ruby: "3.2"
puma: "6"
- ruby: "3.1"
puma: "6"
- ruby: "3.0"
puma: "5"
- ruby: "2.7"
puma: "4"
container:
image: ruby:${{ matrix.ruby }}
env:
CI: true
PUMA_VERSION: ${{ matrix.puma }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec