Skip to content

Commit

Permalink
Update dependencies (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefSchenkelaars authored Jun 3, 2021
1 parent 51de295 commit c00ee4b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 60 deletions.
40 changes: 11 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: rubocop
uses: reviewdog/action-rubocop@v1
with:
rubocop_version: gemfile
github_token: ${{ secrets.github_token }}
reporter: github-check
rspec:
Expand All @@ -20,49 +25,26 @@ jobs:
- 2.5
- 2.6
- 2.7
- 3.0
name: RSpec tests ruby ${{ matrix.ruby }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup caching for ruby gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby
uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install gems
run: |
gem install bundler:2.1.4 --no-doc
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec spec/rspec
e2e:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup caching for ruby gems
uses: actions/cache@v2
- uses: ruby/setup-ruby@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install gems
run: |
gem install bundler:2.1.4 --no-doc
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
ruby-version: 3.0
bundler-cache: true
- name: Run RSpec in GITHUB_WORKSPACE
run: '! bundle exec rspec spec/integration/failing_spec.rb'
- name: Run RSpec in sub-directory of GITHUB_WORKSPACE
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0
- name: Replace version by tag value
run: sed -i "s/'[0-9]\.[0-9]\..*'/'${GITHUB_REF##*/}'/" lib/rspec/github/version.rb
- name: Publish to RubyGems
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AllCops:
TargetRubyVersion: 2.4
NewCops: enable

# A top class comment is not needed for this simple gem
Style/Documentation:
Expand Down
53 changes: 27 additions & 26 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,49 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ast (2.4.1)
ast (2.4.2)
diff-lcs (1.4.4)
parallel (1.19.2)
parser (2.7.2.0)
parallel (1.20.1)
parser (3.0.1.1)
ast (~> 2.4.1)
rainbow (3.0.0)
regexp_parser (1.8.2)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.3)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
regexp_parser (2.1.1)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
rubocop (1.0.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rubocop (1.12.1)
parallel (~> 1.10)
parser (>= 2.7.1.5)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 0.6.0)
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (1.0.0)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
ruby-progressbar (1.10.1)
unicode-display_width (1.7.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.0.0)

PLATFORMS
ruby

DEPENDENCIES
rspec (~> 3.0)
rspec-github!
rubocop (~> 1.0)
rubocop (~> 1.12.0)
rubocop-ast (~> 1.4.0)

BUNDLED WITH
2.1.4
2.2.19
3 changes: 2 additions & 1 deletion rspec-github.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'rspec-core', '~> 3.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 1.0'
spec.add_development_dependency 'rubocop', '~> 1.12.0'
spec.add_development_dependency 'rubocop-ast', '~> 1.4.0'
end

0 comments on commit c00ee4b

Please sign in to comment.