Skip to content

Commit

Permalink
Ruby 3.3, Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RISCfuture committed Feb 28, 2024
1 parent f10b60e commit ab03ffe
Show file tree
Hide file tree
Showing 19 changed files with 201 additions and 180 deletions.
27 changes: 12 additions & 15 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 All @@ -21,6 +21,7 @@ jobs:
postgres:
image: postgres:15
env:
POSTGRES_DB: flyweight_test
POSTGRES_USER: flyweight
POSTGRES_PASSWORD: postgres
options: >-
Expand All @@ -40,21 +41,24 @@ 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:
POSTGRES_DB: flyweight_test
POSTGRES_USER: flyweight
POSTGRES_PASSWORD: postgres
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
RAILS_ENV: test
run: bin/rails db:setup
run: |
sudo apt-get install libpq-dev
RAILS_ENV=test bin/rails db:setup
- name: Run unit tests
env:
POSTGRES_DB: flyweight_test
POSTGRES_USER: flyweight
POSTGRES_PASSWORD: postgres
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
Expand All @@ -64,11 +68,11 @@ 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: |
Expand All @@ -83,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.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.2"
ruby "3.3.0"

# CORE
gem "puma"
Expand Down
Loading

0 comments on commit ab03ffe

Please sign in to comment.