From 1013025dba400f79673b8f35a3d276087c62312d Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Fri, 4 Mar 2022 16:39:38 -0800 Subject: [PATCH 1/2] Adds CI using GitHub Actions --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e1699fd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.6', '2.7', '3.0', '3.1'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # 'bundle install' and cache + - name: Run specs + run: | + bundle exec rake From dffe150344aa41895549fbeadbfc71eeb2ae100f Mon Sep 17 00:00:00 2001 From: Bobby McDonald Date: Wed, 13 Apr 2022 22:44:23 -0400 Subject: [PATCH 2/2] Add GitHub actions CI --- Rakefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Rakefile b/Rakefile index 6543720..22e0760 100644 --- a/Rakefile +++ b/Rakefile @@ -14,21 +14,12 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end - - - - - require 'bundler/gem_tasks' -require 'rake/testtask' - -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new do |spec| + spec.pattern = 'spec/**/*_spec.rb' end -task default: :test +task default: :spec