Skip to content

Commit 56787d3

Browse files
authored
DEV-2018 Update and Migrate to MyMLH v4 (#49)
* 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
1 parent 5944c0c commit 56787d3

21 files changed

+543
-482
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Ruby CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
ruby-version:
20+
- '3.1'
21+
mongodb-version:
22+
- '5.0'
23+
- '6.0'
24+
- '7.0'
25+
- '8.0'
26+
27+
env:
28+
SECRET_KEY_BASE: "test_secret"
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{ matrix.ruby-version }}
37+
bundler-cache: true
38+
39+
- name: Install dependencies
40+
run: bundle install
41+
42+
- name: Start MongoDB
43+
uses: supercharge/mongodb-github-action@v1
44+
with:
45+
mongodb-version: ${{ matrix.mongodb-version }}
46+
47+
- name: Run tests
48+
run: bundle exec rake spec

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.6
1+
3.1.6

Gemfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
ruby '2.6.6'
21
source 'https://rubygems.org'
32

4-
gem 'airbrake'
5-
gem 'mongo_mapper', '0.15.0'
3+
gem 'mongo_mapper', '0.16.0'
64
gem 'sinatra'
75
gem 'sinatra-contrib'
86
gem 'zippy'
97
gem 'omniauth'
10-
gem 'omniauth-mlh', '0.4.1'
8+
gem 'omniauth-mlh', '~> 4.1'
9+
gem 'ostruct'
10+
gem 'puma'
11+
gem "stackprof"
12+
gem "sentry-ruby"
13+
1114

1215
group :development do
1316
gem 'sinatra-reloader'
@@ -16,13 +19,14 @@ end
1619
group :development, :test do
1720
gem 'pry'
1821
gem 'rake'
22+
gem 'dotenv'
1923
end
2024

2125
group :test do
26+
gem 'rspec'
2227
gem 'capybara'
2328
gem 'webdrivers'
24-
gem 'database_cleaner'
29+
gem 'database_cleaner-mongo'
2530
gem 'faker'
26-
gem 'minitest'
2731
gem 'rack-test'
2832
end

0 commit comments

Comments
 (0)