Skip to content

Commit

Permalink
DEV-2018 Update and Migrate to MyMLH v4 (#49)
Browse files Browse the repository at this point in the history
* Upgrade dependencies, replace airbrake with sentry, and add dotenv

* Update omniauth provider config

* Migrate tests from minitest to rspec

* Add GitHub Action Workflow

* Remove explicit ruby version from gemfile

* add x86 linux platform

* remove circle config

* Update matrix

* Update matrix
  • Loading branch information
erinosher authored Nov 20, 2024
1 parent 5944c0c commit 56787d3
Show file tree
Hide file tree
Showing 21 changed files with 543 additions and 482 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Ruby CI

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- '3.1'
mongodb-version:
- '5.0'
- '6.0'
- '7.0'
- '8.0'

env:
SECRET_KEY_BASE: "test_secret"

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: bundle install

- name: Start MongoDB
uses: supercharge/mongodb-github-action@v1
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Run tests
run: bundle exec rake spec
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.6
3.1.6
16 changes: 10 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
ruby '2.6.6'
source 'https://rubygems.org'

gem 'airbrake'
gem 'mongo_mapper', '0.15.0'
gem 'mongo_mapper', '0.16.0'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'zippy'
gem 'omniauth'
gem 'omniauth-mlh', '0.4.1'
gem 'omniauth-mlh', '~> 4.1'
gem 'ostruct'
gem 'puma'
gem "stackprof"
gem "sentry-ruby"


group :development do
gem 'sinatra-reloader'
Expand All @@ -16,13 +19,14 @@ end
group :development, :test do
gem 'pry'
gem 'rake'
gem 'dotenv'
end

group :test do
gem 'rspec'
gem 'capybara'
gem 'webdrivers'
gem 'database_cleaner'
gem 'database_cleaner-mongo'
gem 'faker'
gem 'minitest'
gem 'rack-test'
end
Loading

0 comments on commit 56787d3

Please sign in to comment.