Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: Tests

env:
RUBY_VERSION: 2.7
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
RUBY_VERSION: 3.1

on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0' # weekly

jobs:
tests:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ env.RUBY_VERSION }}
- name: Test
env:
ENABLE_CODECOV: 1
run: |
gem install bundler
bundle install
bundle exec rake setup
bundle exec rspec
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.8
3.1.7
21 changes: 12 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby File.read('.ruby-version').strip

gem 'rails', '~> 5.2.3'
gem 'puma', '~> 4.3'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'rails', '6.1.7.10'
gem 'puma'
gem 'bootsnap', require: false

# Remove this entry after Rails is updated further
gem 'concurrent-ruby', '1.3.4'

# Gives 200 OK from /ping
gem 'openstax_healthcheck'
Expand All @@ -25,7 +28,7 @@ gem 'scout_apm'

# Kafka stuff
gem 'ruby-kafka'
gem 'avro_turf', github: 'dasch/avro_turf', ref: '6ef7a6b5458a61a9d57307ee0bb1a7fdfb3ed170'
gem 'avro_turf'
gem 'avro-builder'

# Versioned API tools
Expand All @@ -34,7 +37,7 @@ gem 'versionist'
# CORS
gem 'rack-cors'

gem "openstax_swagger", github: 'openstax/swagger-rails', ref: '9bff4962b31e142debbc62390f1fd3adab3af055'
gem 'openstax_swagger', github: 'openstax/swagger-rails', ref: 'c88e569861378fa858e98da55eefe6da31b121c2'

# More concise, one-liner logs (better for production)
gem 'lograge'
Expand All @@ -43,7 +46,7 @@ group :test do
# Code Climate integration
# gem "codeclimate-test-reporter", require: false

gem 'codecov', '~> 0.2.13', require: false
gem 'codecov', require: false
gem 'simplecov', require: false
gem 'sinatra'
gem 'webmock'
Expand All @@ -56,15 +59,15 @@ group :development, :test do
gem 'pry-rails'

gem 'rspec-json_expectations'
gem 'rspec-rails', '~> 3.8'
gem 'rspec-rails'

gem 'rubocop'
end

group :development do
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'listen'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'spring-watcher-listen'

gem 'rack-mini-profiler'
end
Expand Down
Loading