Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Use setup-rails for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 16, 2022
1 parent 1b13725 commit 0c6cbba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,20 @@ def add_esbuild_script
end
end

def add_github_actions_ci
script = <<~EOS
# See https://github.com/andyw8/setup-rails for more information
name: Verify
on: [push]
jobs:
verify:
uses: andyw8/setup-rails/.github/workflows/verify.yml@v1
EOS
create_file '.github/workflows/verify.yml', script
end

def add_gem(name, *options)
gem(name, *options) unless gem_exists?(name)
end
Expand Down Expand Up @@ -252,6 +266,7 @@ def gem_exists?(name)
add_sitemap
add_announcements_css
add_esbuild_script
add_github_actions_ci
rails_command "active_storage:install"

# Make sure Linux is in the Gemfile.lock for deploying
Expand Down

0 comments on commit 0c6cbba

Please sign in to comment.