Skip to content

Commit

Permalink
Ruby 3.3.2, Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RISCfuture committed Jun 19, 2024
1 parent 6bd6882 commit bd352b8
Show file tree
Hide file tree
Showing 21 changed files with 257 additions and 217 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ruby.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby
name: CI

on:
push:
Expand Down Expand Up @@ -41,11 +41,11 @@ jobs:
ports:
- "6379:6379"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true
- name: Create test database
env:
Expand All @@ -68,15 +68,15 @@ jobs:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true
- name: Run Rubocop
run: |
gem install rubocop-rails rubocop-rspec rubocop-performance rubocop-md rubocop-rake
gem install rubocop-performance rubocop-rake rubocop-md rubocop-yard rubocop-rspec rubocop-factory_bot rubocop-rails rubocop-graphql rubocop-sidekiq
git clone https://gist.github.com/65e21b9e8b0d1db285dcb4fc627b98fa.git .rubocop
cp .rubocop/.rubocop.yml .rubocop-ruby.yml
git clone https://gist.github.com/14cfa24d53c12bf385871e9b93b95c37.git .rubocop-rspec
Expand All @@ -87,11 +87,4 @@ jobs:
mv .rubocop2.yml .rubocop.yml
rubocop --parallel
- name: Run Brakeman
run: |
#gem install brakeman
git clone https://github.com/presidentbeef/brakeman.git
pushd brakeman
gem build brakeman.gemspec
gem install brakeman*.gem
popd
brakeman -q -w2
uses: artplan1/brakeman-action@v1
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.3
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

source "https://rubygems.org"

ruby "3.2.2"
ruby "3.3.3"
gem "net-pop", github: "ruby/net-pop" # 3.3.3 hack fix

# FRAMEWORK
gem "bootsnap"
Expand Down
Loading

0 comments on commit bd352b8

Please sign in to comment.