Skip to content

Commit

Permalink
Make env variable from each matrix key automatically
Browse files Browse the repository at this point in the history
Renamed a few of them to follow convention.
  • Loading branch information
mostlyobvious committed Sep 6, 2023
1 parent f6392ba commit 0ecd590
Show file tree
Hide file tree
Showing 30 changed files with 158 additions and 99 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/aggregate_root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dres_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/dres_client
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dres_rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/dres_rails
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
services:
postgres_11:
image: postgres:11
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/minitest-ruby_event_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/minitest-ruby_event_store
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand All @@ -47,7 +48,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/minitest-ruby_event_store
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/rails_event_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: rails_event_store
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -53,7 +54,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: rails_event_store
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ruby_event_store-active_record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-active_record
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
DATA_TYPE: ${{ matrix.data_type }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
services:
postgres_11:
image: postgres:11
Expand Down Expand Up @@ -122,7 +123,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-active_record
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-browser
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -60,7 +61,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-browser
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-flipper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-flipper
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -53,7 +54,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-flipper
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-newrelic
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-newrelic
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ruby_event_store-outbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-outbox
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
services:
mysql_5:
image: mysql:5
Expand Down Expand Up @@ -104,7 +105,9 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-outbox
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-profiler
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-profiler
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ruby_event_store-protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-protobuf
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -63,7 +64,9 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-protobuf
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
strategy:
fail-fast: false
steps:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ruby_event_store-rom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-rom
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
DATA_TYPE: ${{ matrix.data_type }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
services:
postgres_11:
image: postgres:11
Expand Down Expand Up @@ -112,7 +113,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-rom
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-rspec
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-rspec
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ruby_event_store-sequel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-sequel
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
DATABASE_URL: ${{ matrix.database_url }}
DATA_TYPE: ${{ matrix.data_type }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
services:
postgres_11:
image: postgres:11
Expand Down Expand Up @@ -112,7 +113,10 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-sequel
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"
strategy:
fail-fast: false
steps:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/ruby_event_store-sidekiq_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,28 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
REDIS_URL: redis://localhost:6379/0
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
REDIS_URL: "${{ matrix.redis_url }}"
strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
redis_url: redis://localhost:6379/0
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
redis_url: redis://localhost:6379/0
- ruby_version: ruby-2.7
bundle_gemfile: Gemfile
redis_url: redis://localhost:6379/0
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile.sidekiq_6_5
redis_url: redis://localhost:6379/0
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile.sidekiq_5_2
redis_url: redis://localhost:6379/0
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile.sidekiq_6_5
- ruby_version: ruby-3.0
Expand Down Expand Up @@ -71,8 +77,9 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler
BUNDLE_GEMFILE: Gemfile
REDIS_URL: redis://localhost:6379/0
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
REDIS_URL: "${{ matrix.redis_url }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store-transformations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-transformations
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-transformations
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby_event_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store
BUNDLE_GEMFILE: ${{ matrix.bundle_gemfile }}
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store
BUNDLE_GEMFILE: Gemfile
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
steps:
Expand Down
2 changes: 1 addition & 1 deletion support/ci/assets.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: <%= working_directory %>
<%= env %>
strategy:
fail-fast: false
matrix:
Expand Down
Loading

0 comments on commit 0ecd590

Please sign in to comment.