Skip to content

Commit

Permalink
Github action to bundle install and run test
Browse files Browse the repository at this point in the history
  • Loading branch information
junedkazi committed Feb 9, 2022
1 parent 0a129f2 commit a35a3a9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1']

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rake
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ group :test do
gem 'coffee-rails'
gem 'sass-rails', '~> 6.0.0'
gem 'money', '6.13'
gem 'rspec-rails', '~> 2.10'
gem 'shoulda-matchers', '2.2.0'
gem 'rspec-rails', '~> 5.1.0'
gem 'shoulda-matchers', '5.1.0'
gem 'simplecov', :require => false
gem 'simplecov-rcov'
gem 'database_cleaner'
Expand Down
5 changes: 0 additions & 5 deletions Versionfile

This file was deleted.

0 comments on commit a35a3a9

Please sign in to comment.