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 c9bf0bb commit f132c1b
Show file tree
Hide file tree
Showing 49 changed files with 150 additions and 122 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
1 change: 0 additions & 1 deletion .github/workflows/aggregate_root_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: aggregate_root
strategy:
fail-fast: false
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
3 changes: 2 additions & 1 deletion .github/workflows/minitest-ruby_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/minitest-ruby_event_store
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
1 change: 0 additions & 1 deletion .github/workflows/rails_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: rails_event_store
strategy:
fail-fast: false
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: ruby_event_store-active_record
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-browser_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: ruby_event_store-browser
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-flipper_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-flipper
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-newrelic_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-newrelic
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-outbox_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-outbox
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-profiler_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-profiler
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-protobuf_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-protobuf
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-rom_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: contrib/ruby_event_store-rom
strategy:
fail-fast: false
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
1 change: 0 additions & 1 deletion .github/workflows/ruby_event_store-rspec_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
BUNDLE_GEMFILE: Gemfile
WORKING_DIRECTORY: ruby_event_store-rspec
strategy:
fail-fast: false
Expand Down
Loading

0 comments on commit f132c1b

Please sign in to comment.