diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ff841a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI +on: + push: + branches: + - master + pull_request: + +jobs: + rspec: + name: Unit tests + runs-on: ubuntu-latest + strategy: + matrix: + include: + - { ruby_version: 2.4 } + - { ruby_version: 2.5 } + - { ruby_version: 2.4 } + - { ruby_version: 2.7 } + - { ruby_version: 3.0 } + - { ruby_version: jruby } + steps: + - uses: actions/checkout@v1 + + - name: Set up Ruby ${{ matrix.ruby_version }} + uses: ruby/setup-ruby@v1 + with: + bundler: 2 + ruby-version: ${{ matrix.ruby_version }} + + - name: Run specs + run: | + bundle install --jobs 4 --retry 3 --no-cache --frozen + bundle exec rspec diff --git a/Gemfile.lock b/Gemfile.lock index f8e4117..326ddb9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,8 +7,6 @@ PATH GEM remote: https://rubygems.org/ specs: - byebug (11.1.3) - coderay (1.1.3) concurrent-ruby (1.1.8) diff-lcs (1.4.4) faraday (1.3.0) @@ -16,14 +14,7 @@ GEM multipart-post (>= 1.2, < 3) ruby2_keywords faraday-net_http (1.0.1) - method_source (1.0.0) multipart-post (2.1.1) - pry (0.13.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-byebug (3.9.0) - byebug (~> 11.0) - pry (~> 0.13.0) rack (2.2.3) rake (10.5.0) rspec (3.10.0) @@ -53,7 +44,6 @@ PLATFORMS DEPENDENCIES bundler (>= 1.17) - pry-byebug rack rake (~> 10.0) rspec (~> 3.0) diff --git a/sentry-sanitizer.gemspec b/sentry-sanitizer.gemspec index aef24cb..93a24c4 100644 --- a/sentry-sanitizer.gemspec +++ b/sentry-sanitizer.gemspec @@ -31,7 +31,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'rack' - spec.add_development_dependency 'pry-byebug' spec.add_runtime_dependency 'sentry-ruby', '~> 4.2.0' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6ecf1e4..1ca4737 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,5 @@ require 'bundler/setup' require 'sentry/sanitizer' -require 'pry-byebug' RSpec.configure do |config| # Enable flags like --only-failures and --next-failure