Skip to content

Commit

Permalink
Merge pull request #45 from SalesLoft/rm-test
Browse files Browse the repository at this point in the history
Get tests passing
  • Loading branch information
sionide21 authored Aug 28, 2023
2 parents 45b70ab + 6aa8004 commit 21bfb7a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 28 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/tcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,26 @@ on:

jobs:
test:
name: Test
name: "Test: Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby:
- "2.0.0"
- "2.1.9"
- "2.2.10"
- "2.3.7"
- "2.4.4"
- "2.5.1"
- "2.7.3"
- "3.0.1"

- "2.7"
- "3.0"
- "3.1"
steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: bundle install

- name: Run tests
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Ruby Version
run: ruby --version
- name: Run Tests
run: bundle exec rspec

testall:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ test/tmp
test/version_tmp
tmp
/.idea
.tool-versions
1 change: 0 additions & 1 deletion .rvmrc

This file was deleted.

8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in tcr.gemspec
gemspec

gem "rspec"
gem "mail"
gem "net-ldap"
gem "mime-types"
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new('spec')
RSpec::Core::RakeTask.new("spec")
task :default => :spec
6 changes: 0 additions & 6 deletions tcr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@ Gem::Specification.new do |gem|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.add_development_dependency "rspec"
gem.add_development_dependency "mail"
gem.add_development_dependency "net-ldap"
gem.add_development_dependency "mime-types", "~>2.0"
gem.add_development_dependency "geminabox"
end

0 comments on commit 21bfb7a

Please sign in to comment.