Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 34 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
PGUSER: postgres
PGPASSWORD: postgres
TESTOPTS: "--fail-fast"

jobs:
lint:
name: "Lint"
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
ruby-version: 3.4.7
bundler-cache: true

- name: Lint code for consistent style
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
ruby-version: 3.4.7
bundler-cache: true

- name: Run tests
Expand Down Expand Up @@ -82,8 +82,37 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
ruby-version: 3.4.7
bundler-cache: true

- name: Run tests
run: bundle exec rake
run: bundle exec rake

test_rails_8_1:
name: "Tests (Rails 8.1)"
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_8_1.gemfile
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y curl libjemalloc2

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.7
bundler-cache: true

- name: Run tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.4.7
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ appraise "rails-8" do
gem "rails", ">= 8.0"
gem "async", "~> 2.25"
end

appraise "rails-8-1" do
gem "rails", ">= 8.1"
gem "async", "~> 2.25"
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ gem "standard", require: false
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "async", "~> 2.25"
gem "csv" # Used to be in stdlib
2 changes: 2 additions & 0 deletions gemfiles/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_RETRY: "1"
1 change: 1 addition & 0 deletions gemfiles/rails_7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem "standard", require: false
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "async", "~> 2.25"
gem "csv"
gem "rails", "< 8.0"

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails_7.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ GEM
fiber-local (~> 1.1)
json
crass (1.0.6)
csv (3.3.5)
date (3.4.1)
debug (1.10.0)
irb (~> 1.10)
Expand Down Expand Up @@ -278,6 +279,7 @@ PLATFORMS
DEPENDENCIES
appraisal
async (~> 2.25)
csv
debug
gouda!
minitest (~> 5.0)
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails_8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem "standard", require: false
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "async", "~> 2.25"
gem "csv"
gem "rails", ">= 8.0"

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails_8.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ GEM
fiber-local (~> 1.1)
json
crass (1.0.6)
csv (3.3.5)
date (3.4.1)
debug (1.10.0)
irb (~> 1.10)
Expand Down Expand Up @@ -279,6 +280,7 @@ PLATFORMS
DEPENDENCIES
appraisal
async (~> 2.25)
csv
debug
gouda!
minitest (~> 5.0)
Expand Down
12 changes: 12 additions & 0 deletions gemfiles/rails_8_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "standard", require: false
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "async", "~> 2.25"
gem "csv"
gem "rails", ">= 8.1"

gemspec path: "../"
Loading
Loading