Skip to content

Commit

Permalink
Add Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 6, 2021
1 parent 2817bf4 commit 93d0b43
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 0 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,14 @@ 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)
faraday-net_http (~> 1.0)
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)
Expand Down Expand Up @@ -53,7 +44,6 @@ PLATFORMS

DEPENDENCIES
bundler (>= 1.17)
pry-byebug
rack
rake (~> 10.0)
rspec (~> 3.0)
Expand Down
1 change: 0 additions & 1 deletion sentry-sanitizer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 93d0b43

Please sign in to comment.