Repository navigation
fix: keep logging levels per session #1836
Workflow file for this run
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| # ruby/setup-ruby has no CRuby below 3.2 for ubuntu-26.04, which ubuntu-latest points to, so those run on ubuntu-24.04. | |
| runs-on: ${{ matrix.entry.os }} | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| entry: | |
| - { ruby: '2.7.0', os: ubuntu-24.04, allowed-failure: false } # Minimum supported Ruby version. | |
| - { ruby: '3.0', os: ubuntu-24.04, allowed-failure: false } | |
| - { ruby: '3.1', os: ubuntu-24.04, allowed-failure: false } | |
| - { ruby: '3.2', os: ubuntu-latest, allowed-failure: false } | |
| - { ruby: '3.3', os: ubuntu-latest, allowed-failure: false } | |
| - { ruby: '3.4', os: ubuntu-latest, allowed-failure: false } | |
| - { ruby: '4.0', os: ubuntu-latest, allowed-failure: false } | |
| - { ruby: 'head', os: ubuntu-latest, allowed-failure: true } | |
| name: Test Ruby ${{ matrix.entry.ruby }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.entry.ruby }} | |
| bundler-cache: true | |
| - run: bundle exec rake test | |
| continue-on-error: ${{ matrix.entry.allowed-failure }} | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: RuboCop | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 4.0 # Specify the latest supported Ruby version. | |
| bundler-cache: true | |
| - run: bundle exec rake rubocop | |
| yard: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: YARD Documentation | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 4.0 # Specify the latest supported Ruby version. | |
| bundler-cache: true | |
| - run: bundle exec yard --no-output |