Skip to content

Commit

Permalink
F2: Enable Github Actions (#549)
Browse files Browse the repository at this point in the history
* Add infrastructure gems

* Rubocop

* Clean up

* Run `rails generate rspec:install`

* Enable CI for the integration branch

* Bump Ruby to 3.3.4

* Rubocop autocorrect

* Update gems

* Rubocop autocorrect

* Run `rails app:update:bin`

* Run `rails db:migrate` to generate schema, and `rails db:reset`

* Update DB configuration

* Drop autogenerated credentials
  • Loading branch information
dreikanter authored Jul 28, 2024
1 parent 42a6943 commit a44a266
Show file tree
Hide file tree
Showing 37 changed files with 884 additions and 165 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- master
- feeder2
pull_request:
branches:
- master
- feeder2

jobs:
rubocop:
Expand All @@ -19,7 +21,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down Expand Up @@ -48,7 +50,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down Expand Up @@ -77,7 +79,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down Expand Up @@ -188,7 +190,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"

- name: Cache gems
uses: actions/cache@v2
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ AllCops:
- "node_modules/**/*"
- "vendor/bundle/**/*"

Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys

Style/RescueStandardError:
EnforcedStyle: explicit

Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.2.2
ruby-3.3.4
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3.4
35 changes: 28 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,42 @@
source "https://rubygems.org"

ruby "3.2.2"
ruby "3.3.4"

gem "amazing_print"
gem "bootsnap", require: false
gem "jsbundling-rails"
gem "pg", "~> 1.1"
gem "pg", "~> 1.5"
gem "propshaft"
gem "puma", ">= 5.0"
gem "pry", "~> 0.14"
gem "pry-byebug"
gem "pry-rails", "~> 0.3.9"
gem "puma", "~> 6.4"
gem "rails", "~> 7.1.3", ">= 7.1.3.4"
gem "stimulus-rails"
gem "turbo-rails"
gem "tzinfo-data"

group :development, :test do
gem "debug"
end

group :development do
gem "brakeman", "~> 6.1", require: false
gem "bundler-audit", "~> 0.9", require: false
gem "reek", "~> 6.3", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-rails", require: false
gem "rubocop-rspec", require: false
gem "rubocop-rspec_rails", "~> 2.30"
gem "standard", ">= 1.0", require: false
gem "standard-performance", require: false
gem "web-console"
gem "yaml-lint", "~> 0.1.2", require: false
end

group :development, :test do
gem "annotate", "~> 3.2"
gem "debug"
gem "factory_bot_rails", "~> 6.4"
gem "marginalia", "~> 1.11"
gem "rspec-rails", "~> 6.1"
gem "simplecov", "~> 0.22"
gem "webmock", "~> 3.23"
end
Loading

0 comments on commit a44a266

Please sign in to comment.