Pass the right options when determining whether to expose an attribute using a block #23
Workflow file for this run
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
name: Ruby | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: Run rubocop | |
run: bundle exec rubocop --parallel --format progress | |
rspec: | |
runs-on: ubuntu-latest | |
needs: ['rubocop'] | |
strategy: | |
matrix: | |
ruby-version: ['3.0', '3.1', '3.2', 'head'] | |
steps: | |
- name: Check out branch | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Run rspec rest of the suite | |
run: bundle exec rspec |