Skip to content

Commit

Permalink
Fix #5: Github actions for rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jonspalmer committed Apr 13, 2020
1 parent ff7b89f commit 1444f32
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: [5.0.0, 5.2.3, 6.0.0, master]
ruby_version: [2.5.x, 2.6.x, 2.7.x]
steps:
- uses: actions/checkout@master
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Build and test with Rake
run: |
gem install bundler:1.17.3
bundle update
bundle install --jobs 4 --retry 3
bundle exec rspec
env:
RAILS_VERSION: ${{ matrix.rails_version }}
12 changes: 1 addition & 11 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,13 @@
require "view_component/engine"
require "view_component/storybook/engine"
require "sprockets/railtie"
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Dummy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.

# Don't generate system test files.
config.generators.system_tests = nil
config.secret_key_base = "foo"
end
end

0 comments on commit 1444f32

Please sign in to comment.