Bump ruby/setup-ruby from 1.310.0 to 1.313.0 #2579
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: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # Fail fast if a job hangs (e.g. an integration worker that never self-terminates), | |
| # instead of burning the GitHub Actions default 360-minute timeout. | |
| timeout-minutes: 5 | |
| name: Ruby ${{ matrix.ruby }} | Rails ${{ matrix.rails }} | Gemfile ${{ matrix.gemfile }} | |
| continue-on-error: ${{ matrix.rails == 'edge' }} | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["3.1", "3.2", "3.3", "3.4", "4.0"] | |
| rails: ["7.1", "7.2", "8.0", "8.1", "edge"] | |
| gemfile: [rails_gems] | |
| exclude: | |
| - ruby: "3.1" | |
| rails: "8.0" | |
| - ruby: "3.1" | |
| rails: "8.1" | |
| - ruby: "3.1" | |
| rails: "edge" | |
| - ruby: "3.2" | |
| rails: "edge" | |
| include: | |
| - ruby: head | |
| rails: "edge" | |
| gemfile: rails_gems | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
| RAILS_VERSION: ${{ matrix.rails }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Start MySQL and create DB | |
| run: | | |
| sudo systemctl start mysql.service | |
| mysql -uroot -h localhost -proot -e "CREATE DATABASE job_iteration_test;" | |
| - name: Ruby tests | |
| run: bundle exec rake test | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: Lint | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0 | |
| with: | |
| bundler-cache: true | |
| - name: Rubocop | |
| run: bundle exec rubocop | |
| - name: Documentation correctly written | |
| run: bundle exec yardoc --no-output --no-save --no-stats --fail-on-warning |