Skip to content

Commit

Permalink
Add RSpec 4 prerelease CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj authored and bbatsov committed Jul 13, 2022
1 parent 1e77a15 commit 0562314
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/rubocop.yml
Expand Up @@ -51,3 +51,26 @@ jobs:
run: bundle exec rake ascii_spec
- name: internal_investigation
run: bundle exec rake internal_investigation

rspec4:
runs-on: ubuntu-latest
name: RSpec 4
steps:
- uses: actions/checkout@v3
- name: Use latest RSpec 4 from `4-0-dev` branch
run: |
sed -e "/'rspec', '~> 3/d" -i Gemfile
cat << EOF > Gemfile.local
gem 'rspec', github: 'rspec/rspec', branch: '4-0-dev'
gem 'rspec-core', github: 'rspec/rspec-core', branch: '4-0-dev'
gem 'rspec-expectations', github: 'rspec/rspec-expectations', branch: '4-0-dev'
gem 'rspec-mocks', github: 'rspec/rspec-mocks', branch: '4-0-dev'
gem 'rspec-support', github: 'rspec/rspec-support', branch: '4-0-dev'
EOF
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: spec
run: bundle exec rspec

0 comments on commit 0562314

Please sign in to comment.