Skip to content

Replace CircleCI with GitHub Actions #5

Replace CircleCI with GitHub Actions

Replace CircleCI with GitHub Actions #5

Workflow file for this run

on:
pull_request:
branches: ["*"]
push:
branches: [master]
jobs:
test:
strategy:
matrix:
# https://bundler.io/compatibility.html
ruby:
- version: ruby-3.3
bundler: ">=2.5"
- version: ruby-3.2
bundler: ">=2.5"
- version: ruby-3.1
bundler: ">=2.5"
- version: ruby-3.0
bundler: ">=2.5"
- version: ruby-2.7
bundler: "2.4"
- version: ruby-2.6
bundler: "2.4"
- version: ruby-2.5
bundler: "2.3"
- version: ruby-2.4
bundler: "2.3"
- version: ruby-2.3
bundler: "2.3"
# - jruby-9.4
# - jruby-9.3
# - jruby-9.2
# - jruby-9.1
# - jruby-9.0
name: ${{ matrix.ruby.version }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby.version }}
- name: Install bundler
run: gem install bundler -v ${{ matrix.ruby.bundler }}
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rspec