Improve examples/service_objects #299
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: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} | |
strategy: | |
matrix: | |
ruby: [2.7, 3.0, 3.1, 3.2, 3.3, head] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run BCDD::Result.configuration test (Minitest) | |
run: bundle exec rake test_configuration TEST_CONFIG_FREEZING=true | |
- name: Run BCDD::Result.transitions test (Minitest) | |
run: bundle exec rake test_transitions_duration BCDD_RESULT_TEST_TRANSITIONS_DURATION=true | |
- name: Run tests (Minitest) | |
run: bundle exec rake test | |
- name: Run static code analysis (Rubocop) | |
run: bundle exec rake rubocop | |
- name: Run static type checking (Steep) | |
run: bundle exec steep check | |
if: ${{ matrix.ruby == 3.2 }} | |
- uses: paambaati/codeclimate-action@v5 | |
if: ${{ matrix.ruby == 3.2 && !github.base_ref }} |