Skip to content

Commit

Permalink
Test on newest and the oldest supported PostgreSQL versions
Browse files Browse the repository at this point in the history
Co-authored-by: Szymon Fiedler <[email protected]>
Co-authored-by: Piotr Jurewicz <[email protected]>
  • Loading branch information
3 people committed Sep 7, 2023
1 parent 2f6ceda commit fc0984a
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 37 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dres_rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,41 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: binary
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/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: binary
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: json
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: jsonb
steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ruby_event_store-active_record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql_5:
image: mysql:5
Expand Down Expand Up @@ -93,19 +93,19 @@ jobs:
data_type: binary
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/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: binary
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: json
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: jsonb
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ruby_event_store-rom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql_5:
image: mysql:5
Expand Down Expand Up @@ -79,19 +79,19 @@ jobs:
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: json
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: jsonb
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ruby_event_store-sequel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql_5:
image: mysql:5
Expand Down Expand Up @@ -79,19 +79,19 @@ jobs:
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10011/rails_event_store?pool=5
data_type: text
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: json
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
database_url: postgres://postgres:secret@localhost:10012/rails_event_store?pool=5
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: jsonb
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
Expand Down
6 changes: 3 additions & 3 deletions support/ci/db.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql_5:
image: mysql:5
Expand Down
6 changes: 3 additions & 3 deletions support/ci/dres_rails.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions support/ci/generate
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CI
SQLITE = "sqlite:db.sqlite3",
SQLITE3 = "sqlite3:db.sqlite3",
POSTGRES = [
POSTGRES_12 =
"postgres://postgres:secret@localhost:10012/rails_event_store?pool=5",
POSTGRES_15 =
"postgres://postgres:secret@localhost:10015/rails_event_store?pool=5",
POSTGRES_11 =
"postgres://postgres:secret@localhost:10011/rails_event_store?pool=5"
],
Expand Down
6 changes: 3 additions & 3 deletions support/ci/rom.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
ports:
- 10011:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres_12:
image: postgres:12
postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10012:5432
- 10015:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql_5:
image: mysql:5
Expand Down

0 comments on commit fc0984a

Please sign in to comment.