{"id":13529257,"url":"https://github.com/actions/setup-ruby","last_synced_at":"2025-10-08T05:30:35.245Z","repository":{"id":54582491,"uuid":"193955944","full_name":"actions/setup-ruby","owner":"actions","description":"Set up your GitHub Actions workflow with a specific version of Ruby","archived":true,"fork":false,"pushed_at":"2021-02-09T12:03:25.000Z","size":19048,"stargazers_count":178,"open_issues_count":20,"forks_count":70,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-10-01T23:38:07.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-26T18:14:21.000Z","updated_at":"2025-08-27T14:40:47.000Z","dependencies_parsed_at":"2022-11-23T11:49:45.664Z","dependency_job_id":null,"html_url":"https://github.com/actions/setup-ruby","commit_stats":{"total_commits":73,"total_committers":17,"mean_commits":4.294117647058823,"dds":0.8082191780821918,"last_synced_commit":"e932e7af67fc4a8fc77bd86b744acd4e42fe3543"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/actions/setup-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fsetup-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fsetup-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fsetup-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fsetup-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions","download_url":"https://codeload.github.com/actions/setup-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions%2Fsetup-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892041,"owners_count":26063919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:34.838Z","updated_at":"2025-10-08T05:30:34.929Z","avatar_url":"https://github.com/actions.png","language":"TypeScript","funding_links":[],"categories":["Official Resources","TypeScript"],"sub_categories":["Official Actions"],"readme":"# setup-ruby\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/actions/setup-ruby/actions\"\u003e\u003cimg alt=\"test status\" src=\"https://github.com/actions/setup-ruby/workflows/build-test/badge.svg\"\u003e\u003c/a\u003e\n\n  \u003ca href=\"https://github.com/actions/setup-ruby/actions\"\u003e\u003cimg alt=\"versions status\" src=\"https://github.com/actions/setup-ruby/workflows/ruby-versions/badge.svg\"\u003e\u003c/a\u003e  \n\u003c/p\u003e\n\n**Please note: This action is deprecated and should no longer be used. The team at GitHub has ceased making and accepting code contributions or maintaining issues tracker. Please, migrate your workflows to the [ruby/setup-ruby](https://github.com/ruby/setup-ruby), which is being actively maintained by the official Ruby organization.**\n\n\nThis action sets up a ruby environment for versions which are installed on the [Actions Virtual Environments](https://github.com/actions/virtual-environments).\n\nVirtual environments contain only one Ruby version within a 'major.minor' release, and are updated with new releases.  Hence, a workflow should only be bound to minor versions.\n\nNote that a `ruby-version:` of `2.6` or `2.6.x` are equivalent.\n\n\u003e Supports `2.4`, `2.5`, `2.6`, and `2.7`.\n\n# Usage\n\nSee [action.yml](action.yml)\n\nBasic:\n```yaml\nsteps:\n- uses: actions/checkout@v2\n- uses: actions/setup-ruby@v1\n  with:\n    ruby-version: '2.6' # Version range or exact version of a Ruby version to use, using semvers version range syntax.\n- run: ruby hello.rb\n```\n\nMatrix Testing:\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-16.04\n    strategy:\n      matrix:\n        ruby: [ '2.5', '2.6' ]\n    name: Ruby ${{ matrix.ruby }} sample\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-ruby@v1\n        with:\n          ruby-version: ${{ matrix.ruby }}\n      - run: ruby hello.rb\n```\n\nRuby on Rails Testing:\n```yaml\nname: Rails Unit Tests\n\non: [push, pull_request]\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    services:\n      db:\n        image: postgres:11\n        ports: ['5432:5432']\n        options: \u003e-\n          --health-cmd pg_isready\n          --health-interval 10s\n          --health-timeout 5s\n          --health-retries 5\n\n    steps:\n    - uses: actions/checkout@v2\n    - name: Set up Ruby 2.6\n      uses: actions/setup-ruby@v1\n      with:\n        ruby-version: 2.6\n    - name: Build and test with Rake\n      env:\n        PGHOST: 127.0.0.1\n        PGUSER: postgres\n        RAILS_ENV: test\n      run: |\n        sudo apt-get -yqq install libpq-dev\n        gem install bundler\n        bundle install --jobs 4 --retry 3\n        bundle exec rails db:create\n        bundle exec rails db:migrate\n        bundle exec rails test\n```\n\n# Caching Dependencies\n\nSee [actions/cache](https://github.com/actions/cache) and the [Ruby Gem cache example](https://github.com/actions/cache/blob/master/examples.md#ruby---gem).\n\n# License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n\n# Contributions\n\nContributions are welcome!  See [Contributor's Guide](docs/contributors.md)\n\n## Code of Conduct\n\n:wave: Be nice.  See [our code of conduct](CONDUCT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions%2Fsetup-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions%2Fsetup-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions%2Fsetup-ruby/lists"}