Skip to content

Commit

Permalink
Switch to GitHub Actions and update Rails versions
Browse files Browse the repository at this point in the history
While we probably support older versions of Ruby and Rails there is
little point in testing against anything that is end of life.
  • Loading branch information
gaffneyc committed Nov 18, 2024
1 parent 99ab4f5 commit 0d9f999
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 76 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Tests

on:
push:
branches:
- "main"

jobs:
spec:
runs-on: ubuntu-latest

strategy:
matrix:
ruby_version:[
- "3.1"
- "3.2"
- "3.3"
- "head"
gemfile:
- "rails70"
- "rails71"
- "rails72"
- "rails80"
- "rails-master"

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true

- name: Run Tests
run: bundle exec rake
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

11 changes: 0 additions & 11 deletions gemfiles/rails60.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/rails52.gemfile → gemfiles/rails70.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gemspec path: ".."

gem "rails", "~> 5.2.0"
gem "rails", "~> 7.0.0"

group :test do
gem "aruba"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails42.gemfile → gemfiles/rails71.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gemspec path: ".."

gem "rails", "~> 4.2.0"
gem "rails", "~> 7.1.0"

group :test do
gem "aruba"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails50.gemfile → gemfiles/rails72.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gemspec path: ".."

gem "rails", "~> 5.0.0"
gem "rails", "~> 7.2.0"

group :test do
gem "aruba"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails51.gemfile → gemfiles/rails80.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gemspec path: ".."

gem "rails", "~> 5.1.0"
gem "rails", "~> 8.0.0"

group :test do
gem "aruba"
Expand Down

0 comments on commit 0d9f999

Please sign in to comment.