Fix Style/OneClassPerFile offenses #151
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: tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.2', '3.3', '3.4', '4.0', 'jruby-10.0', 'truffleruby', 'truffleruby+graalvm'] | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| exclude: | |
| - ruby-version: truffleruby | |
| platform: windows-latest | |
| - ruby-version: truffleruby+graalvm | |
| platform: windows-latest | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: false # Do not bundle install yet, need recent versions for Windows | |
| - name: Run tests | |
| run: | | |
| gem install bundler | |
| bundle config set --local path 'vendor/bundle' | |
| bundle install | |
| bundle exec rake test |