Merge pull request #1567 from rspec/remove-mentions-of-legacy-methods #795
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file was generated on 2022-09-09T14:27:55+01:00 from the rspec-dev repo. | |
# DO NOT modify it by hand as your changes will get lost the next time it is generated. | |
name: RSpec CI | |
on: | |
push: | |
branches: | |
- 'main' | |
- '*-maintenance' | |
- '*-dev' | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
env: | |
RSPEC_CI: true | |
# This tells rspec-rails what branch to run in ci | |
RSPEC_VERSION: '= 4.0.0.pre' | |
jobs: | |
rubocop: | |
name: Rubocop | |
runs-on: 'ubuntu-20.04' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- run: script/update_rubygems_and_install_bundler | |
- run: script/clone_all_rspec_repos | |
- run: bundle install --standalone | |
- run: bundle binstubs --all | |
- run: script/run_rubocop | |
test: | |
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }} | |
runs-on: ${{ matrix.os || 'ubuntu-20.04' }} | |
strategy: | |
matrix: | |
ruby: | |
- '3.1' | |
- '3.0' | |
- 2.7 | |
- 2.6 | |
- 2.5 | |
- 2.4 | |
- 2.3 | |
env: | |
- | |
__UNUSED_VARIABLE: "Prevents build error when {matrix.env} is used." | |
include: | |
- ruby: ruby-head | |
env: | |
RUBY_HEAD: true | |
- ruby: jruby-9.2.13.0 | |
env: | |
JRUBY_OPTS: "--dev" | |
- ruby: jruby-9.1.17.0 | |
bundler: 1 | |
os: ubuntu-18.04 | |
env: | |
JRUBY_OPTS: "--dev" | |
fail-fast: false | |
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }} | |
env: ${{ matrix.env }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler: ${{ matrix.bundler || '2.2.22' }} | |
ruby-version: ${{ matrix.ruby }} | |
- run: script/update_rubygems_and_install_bundler | |
- run: script/clone_all_rspec_repos | |
- run: bundle install --standalone | |
- run: bundle binstubs --all | |
- run: script/run_build | |
windows: | |
name: Ruby ${{ matrix.ruby }} (Windows) | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
ruby: | |
- 2.7 | |
- 2.6 | |
- 2.5 | |
- 2.4 | |
- 2.3 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler: '2.2.22' | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: cinst ansicon | |
- run: bundle exec rspec --backtrace |