Skip to content

Commit

Permalink
Reduce redundant CI jobs
Browse files Browse the repository at this point in the history
One version of PG is sufficient to check data types compatibility.

Co-authored-by: Piotr Jurewicz <pjurewicz93@gmail.com>
Co-authored-by: Szymon Fiedler <szymon.fiedler@gmail.com>
3 people committed Sep 7, 2023
1 parent 094e502 commit 2f6ceda
Showing 2 changed files with 4 additions and 18 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/dres_rails.yml
Original file line number Diff line number Diff line change
@@ -55,27 +55,19 @@ jobs:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
data_type: json
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
data_type: jsonb
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
8 changes: 1 addition & 7 deletions support/ci/generate
Original file line number Diff line number Diff line change
@@ -379,15 +379,9 @@ class CI
generate(
ruby_version(MRI_RUBY),
bundle_gemfile(GEMFILE),
database_url(POSTGRES_11),
database_url(POSTGRES),
data_type(DATA_TYPES_IN_AR)
),
generate(
ruby_version(MRI_RUBY.take(1)),
bundle_gemfile(GEMFILE),
database_url(POSTGRES_12),
data_type(DATA_TYPES_IN_AR)
)
),
template: "dres_rails.yaml.erb"
}

0 comments on commit 2f6ceda

Please sign in to comment.