Skip to content

setup-rails

Actions
Set up Rails CI using GitHub Actions
v1
Latest
Star (32)

setup-rails

This is a re-usable GitHub Actions workflow based on the post Building a Rails CI pipeline with GitHub Actions by Matt Swanson.

Blog Post: A GitHub Actions Rails CI Workflow in 5 lines

To use it, create a file in your repo at .github/workflows/verify.yml containing:

name: Verify
on: [push, pull_request]

jobs:
  verify:
    uses: setup-rails/setup-rails/.github/workflows/verify.yml@v1 # use @main for latest updates
    # uncomment to enable options:
    #
    # with:
    #   brakeman: true
    #   bundler-audit: true
    #   rspec: true
    #   rubocop: true
    #   standard: true

Alternatively, you can install with RailsBytes:

rails app:template LOCATION="https://railsbytes.com/script/VMys8A"

You may also need to update Gemfile.lock by running:

bundle lock --add-platform x86_64-linux

Here is an example app which uses this workflow.

Current Limitations

  • Assumes postgres, no support for mysql or other databases
  • Assumes yarn or bun, no support for npm

setup-rails is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set up Rails CI using GitHub Actions
v1
Latest

setup-rails is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy