From fcee741aa5ff9fd8ee45bf7c337dcd78f39c3e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 14:49:01 +0200 Subject: [PATCH 01/17] Doh --- .github/workflows/dres_rails_test.yml | 2 +- support/ci/dres_rails.yaml.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 93d7a8b0ae..5b430ef9bf 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -7,7 +7,7 @@ on: push: paths: - "contrib/dres_client/**" - - "contrib/dres_rails/**"" + - "contrib/dres_rails/**" - ".github/workflows/dres_rails_test.yml" - "support/**" - "!support/bundler/**" diff --git a/support/ci/dres_rails.yaml.erb b/support/ci/dres_rails.yaml.erb index 9be521c3ed..94932079d4 100644 --- a/support/ci/dres_rails.yaml.erb +++ b/support/ci/dres_rails.yaml.erb @@ -7,7 +7,7 @@ on: push: paths: - "contrib/dres_client/**" - - "contrib/dres_rails/**"" + - "contrib/dres_rails/**" - ".github/workflows/<%= name %>.yml" - "support/**" - "!support/bundler/**" From 6cb548d9abebaeb0189a9a916c0dca3c9ea1c350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 14:49:59 +0200 Subject: [PATCH 02/17] Obsolete with nix-shell and REDIS_URL set by it --- .../workflows/ruby_event_store-sidekiq_scheduler_test.yml | 6 ------ support/ci/generate | 5 ----- 2 files changed, 11 deletions(-) diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index f2bcbb2621..cb45bc90d7 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -26,26 +26,20 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler 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.2 bundle_gemfile: Gemfile - redis_url: redis://localhost:6379/0 - 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-3.2 bundle_gemfile: Gemfile.sidekiq_6_5 - redis_url: redis://localhost:6379/0 - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.sidekiq_5_2 - redis_url: redis://localhost:6379/0 steps: - uses: actions/checkout@v3 with: diff --git a/support/ci/generate b/support/ci/generate index 7c1b1caf8f..b1feccbef3 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -254,7 +254,6 @@ class CI generate( ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE, SIDEKIQ_GEMFILES), - redis_url("redis://localhost:6379/0") ) ), steps: [ @@ -624,10 +623,6 @@ class CI axis("database_url", *database_url) end - def redis_url(*redis_url) - axis("redis_url", *redis_url) - end - def data_type(*data_type) axis("data_type", *data_type) end From d5ccc74aa85dde7f1a759dfb7643fd4bee0d6dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 15:46:34 +0200 Subject: [PATCH 03/17] Generate paths from CI script to further reduce needed templates --- .github/workflows/aggregate_root_coverage.yml | 8 +- .github/workflows/aggregate_root_mutate.yml | 30 +++-- .github/workflows/aggregate_root_test.yml | 30 +++-- .github/workflows/dres_client_test.yml | 14 +- .github/workflows/dres_rails_test.yml | 12 +- .../minitest-ruby_event_store_coverage.yml | 8 +- .../minitest-ruby_event_store_mutate.yml | 10 +- .../minitest-ruby_event_store_test.yml | 10 +- .../workflows/rails_event_store_coverage.yml | 8 +- .../workflows/rails_event_store_mutate.yml | 30 +++-- .github/workflows/rails_event_store_test.yml | 30 +++-- ...uby_event_store-active_record_coverage.yml | 8 +- .../ruby_event_store-active_record_mutate.yml | 30 +++-- .../ruby_event_store-active_record_test.yml | 28 ++-- .../ruby_event_store-browser_coverage.yml | 8 +- .../ruby_event_store-browser_mutate.yml | 30 +++-- .../ruby_event_store-browser_test.yml | 30 +++-- .../ruby_event_store-flipper_coverage.yml | 8 +- .../ruby_event_store-flipper_mutate.yml | 10 +- .../ruby_event_store-flipper_test.yml | 10 +- .../ruby_event_store-newrelic_coverage.yml | 8 +- .../ruby_event_store-newrelic_mutate.yml | 10 +- .../ruby_event_store-newrelic_test.yml | 10 +- .../ruby_event_store-outbox_coverage.yml | 8 +- .../ruby_event_store-outbox_mutate.yml | 10 +- .../ruby_event_store-outbox_test.yml | 8 +- .../ruby_event_store-profiler_coverage.yml | 8 +- .../ruby_event_store-profiler_mutate.yml | 10 +- .../ruby_event_store-profiler_test.yml | 10 +- .../ruby_event_store-protobuf_coverage.yml | 8 +- .../ruby_event_store-protobuf_mutate.yml | 10 +- .../ruby_event_store-protobuf_test.yml | 10 +- .../ruby_event_store-rom_coverage.yml | 8 +- .../workflows/ruby_event_store-rom_mutate.yml | 10 +- .../workflows/ruby_event_store-rom_test.yml | 8 +- .../ruby_event_store-rspec_coverage.yml | 8 +- .../ruby_event_store-rspec_mutate.yml | 30 +++-- .../workflows/ruby_event_store-rspec_test.yml | 30 +++-- .../ruby_event_store-sequel_coverage.yml | 8 +- .../ruby_event_store-sequel_mutate.yml | 10 +- .../ruby_event_store-sequel_test.yml | 8 +- ...event_store-sidekiq_scheduler_coverage.yml | 8 +- ...y_event_store-sidekiq_scheduler_mutate.yml | 10 +- ...uby_event_store-sidekiq_scheduler_test.yml | 10 +- ...y_event_store-transformations_coverage.yml | 8 +- ...uby_event_store-transformations_mutate.yml | 10 +- .../ruby_event_store-transformations_test.yml | 10 +- .../workflows/ruby_event_store_coverage.yml | 8 +- .github/workflows/ruby_event_store_mutate.yml | 30 +++-- .github/workflows/ruby_event_store_test.yml | 30 +++-- support/ci/contrib.yaml.erb | 33 ----- support/ci/coverage.yaml.erb | 12 +- support/ci/db.yaml.erb | 45 ------- support/ci/dres_client.yaml.erb | 35 ----- support/ci/dres_rails.yaml.erb | 37 ------ support/ci/generate | 121 ++++++++++++++---- support/ci/release.yaml.erb | 43 ------- .../ci/{rom.yaml.erb => template.yaml.erb} | 12 +- 58 files changed, 479 insertions(+), 565 deletions(-) delete mode 100644 support/ci/contrib.yaml.erb delete mode 100644 support/ci/db.yaml.erb delete mode 100644 support/ci/dres_client.yaml.erb delete mode 100644 support/ci/dres_rails.yaml.erb delete mode 100644 support/ci/release.yaml.erb rename support/ci/{rom.yaml.erb => template.yaml.erb} (55%) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index f9d49079f1..e8d1a5ddd2 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/Gemfile.lock" + - aggregate_root/Gemfile.lock - ".github/workflows/aggregate_root_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/Gemfile.lock" + - aggregate_root/Gemfile.lock - ".github/workflows/aggregate_root_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 8ee71280a4..d886807d49 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/aggregate_root_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/aggregate_root_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index f7a099ce23..25781f7c06 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/aggregate_root_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/aggregate_root_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index 47544aa6ab..cee3aafb34 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -6,19 +6,19 @@ on: workflow_dispatch: push: paths: - - "contrib/dres_client/**" - - "contrib/dres_rails/**" + - contrib/dres_client/** + - contrib/dres_rails/** - ".github/workflows/dres_client_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/dres_client/**" - - "contrib/dres_rails/**" + - contrib/dres_client/** + - contrib/dres_rails/** - ".github/workflows/dres_client_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -28,6 +28,8 @@ jobs: WORKING_DIRECTORY: contrib/dres_client RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 5b430ef9bf..84e5b504f5 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -6,19 +6,19 @@ on: workflow_dispatch: push: paths: - - "contrib/dres_client/**" - - "contrib/dres_rails/**" + - contrib/dres_client/** + - contrib/dres_rails/** - ".github/workflows/dres_rails_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/dres_rails/**" - - "contrib/dres_client/**" + - contrib/dres_client/** + - contrib/dres_rails/** - ".github/workflows/dres_rails_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 726a095a82..416f7d4ca1 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/minitest-ruby_event_store/Gemfile.lock" + - contrib/minitest-ruby_event_store/Gemfile.lock - ".github/workflows/minitest-ruby_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/minitest-ruby_event_store/Gemfile.lock" + - contrib/minitest-ruby_event_store/Gemfile.lock - ".github/workflows/minitest-ruby_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 1dbb422872..89dfad2723 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/minitest-ruby_event_store/**" + - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/minitest-ruby_event_store/**" + - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index 7490fe49a0..a3c5a8d53a 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/minitest-ruby_event_store/**" + - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/minitest-ruby_event_store/**" + - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index 50a3bbd714..a02040082f 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "rails_event_store/Gemfile.lock" + - rails_event_store/Gemfile.lock - ".github/workflows/rails_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "rails_event_store/Gemfile.lock" + - rails_event_store/Gemfile.lock - ".github/workflows/rails_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 89ba8dd052..75483c16fe 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/rails_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/rails_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 687edc6817..1d4ac2768d 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/rails_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/rails_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index 607d42923f..889cc159d3 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "ruby_event_store-active_record/Gemfile.lock" + - ruby_event_store-active_record/Gemfile.lock - ".github/workflows/ruby_event_store-active_record_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "ruby_event_store-active_record/Gemfile.lock" + - ruby_event_store-active_record/Gemfile.lock - ".github/workflows/ruby_event_store-active_record_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index c4286c43c6..152953d8e5 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-active_record_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-active_record_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 3e341bfaeb..eedf11ea1a 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-active_record_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-active_record_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index a9fcd70eb2..4824fffb2a 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "ruby_event_store-browser/Gemfile.lock" + - ruby_event_store-browser/Gemfile.lock - ".github/workflows/ruby_event_store-browser_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "ruby_event_store-browser/Gemfile.lock" + - ruby_event_store-browser/Gemfile.lock - ".github/workflows/ruby_event_store-browser_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index c1fd80f906..924f395da7 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-browser_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-browser_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 89f9873c3e..9e12a23039 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-browser_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-browser_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index 27c5e45064..1721115b1b 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-flipper/Gemfile.lock" + - contrib/ruby_event_store-flipper/Gemfile.lock - ".github/workflows/ruby_event_store-flipper_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-flipper/Gemfile.lock" + - contrib/ruby_event_store-flipper/Gemfile.lock - ".github/workflows/ruby_event_store-flipper_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index a461497597..6ae1bd802b 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-flipper/**" + - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-flipper/**" + - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index d2d74a3a52..da750e3298 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-flipper/**" + - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-flipper/**" + - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index 190790e3e7..ebf858789d 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-newrelic/Gemfile.lock" + - contrib/ruby_event_store-newrelic/Gemfile.lock - ".github/workflows/ruby_event_store-newrelic_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-newrelic/Gemfile.lock" + - contrib/ruby_event_store-newrelic/Gemfile.lock - ".github/workflows/ruby_event_store-newrelic_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 5e5663c274..6ff3e59eff 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-newrelic/**" + - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-newrelic/**" + - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 704ae61819..3f20c968c1 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-newrelic/**" + - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-newrelic/**" + - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 2dde288756..3700006bb0 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-outbox/Gemfile.lock" + - contrib/ruby_event_store-outbox/Gemfile.lock - ".github/workflows/ruby_event_store-outbox_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-outbox/Gemfile.lock" + - contrib/ruby_event_store-outbox/Gemfile.lock - ".github/workflows/ruby_event_store-outbox_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 21661cc216..affcbf4917 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-outbox/**" + - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-outbox/**" + - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index a670f85f79..e640abb3cf 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-outbox/**" + - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-outbox/**" + - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 462d14df03..b0bafcded5 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-profiler/Gemfile.lock" + - contrib/ruby_event_store-profiler/Gemfile.lock - ".github/workflows/ruby_event_store-profiler_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-profiler/Gemfile.lock" + - contrib/ruby_event_store-profiler/Gemfile.lock - ".github/workflows/ruby_event_store-profiler_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 074fddebf3..d1229b1885 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-profiler/**" + - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-profiler/**" + - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index e97096c5ee..938dfdcc3c 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-profiler/**" + - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-profiler/**" + - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index 8e2e2ec800..f698f403fb 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-protobuf/Gemfile.lock" + - contrib/ruby_event_store-protobuf/Gemfile.lock - ".github/workflows/ruby_event_store-protobuf_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-protobuf/Gemfile.lock" + - contrib/ruby_event_store-protobuf/Gemfile.lock - ".github/workflows/ruby_event_store-protobuf_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 5b92db8c9d..e1a6d7a14f 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-protobuf/**" + - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-protobuf/**" + - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index 9c837a32fd..05a11e7665 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-protobuf/**" + - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-protobuf/**" + - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -27,6 +27,8 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index 408679162b..db3f6ecc14 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-rom/Gemfile.lock" + - contrib/ruby_event_store-rom/Gemfile.lock - ".github/workflows/ruby_event_store-rom_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-rom/Gemfile.lock" + - contrib/ruby_event_store-rom/Gemfile.lock - ".github/workflows/ruby_event_store-rom_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index d2eb938f3b..ef747395c3 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-rom/**" + - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-rom/**" + - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index bb8b29e8f3..b1e835fc58 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-rom/**" + - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-rom/**" + - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index 514cbc6043..fe059cec60 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "ruby_event_store-rspec/Gemfile.lock" + - ruby_event_store-rspec/Gemfile.lock - ".github/workflows/ruby_event_store-rspec_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "ruby_event_store-rspec/Gemfile.lock" + - ruby_event_store-rspec/Gemfile.lock - ".github/workflows/ruby_event_store-rspec_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index 0b6d571bef..68ac016141 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-rspec_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-rspec_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 85f4c53eec..46acd535f6 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-rspec_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store-rspec_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 7809bd5863..2e93e92efc 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sequel/Gemfile.lock" + - contrib/ruby_event_store-sequel/Gemfile.lock - ".github/workflows/ruby_event_store-sequel_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sequel/Gemfile.lock" + - contrib/ruby_event_store-sequel/Gemfile.lock - ".github/workflows/ruby_event_store-sequel_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 06d8e266e5..2714b756a4 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sequel/**" + - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sequel/**" + - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 809f531c05..5567780958 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sequel/**" + - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sequel/**" + - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index cddf3cd14c..17b3c9b866 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock" + - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock" + - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 3fb9ab652c..b954234f11 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sidekiq_scheduler/**" + - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sidekiq_scheduler/**" + - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index cb45bc90d7..e82f2136ce 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-sidekiq_scheduler/**" + - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-sidekiq_scheduler/**" + - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index ea5c252c27..bf4d756076 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-transformations/Gemfile.lock" + - contrib/ruby_event_store-transformations/Gemfile.lock - ".github/workflows/ruby_event_store-transformations_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-transformations/Gemfile.lock" + - contrib/ruby_event_store-transformations/Gemfile.lock - ".github/workflows/ruby_event_store-transformations_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 57ef0a7f85..e9c81ab492 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-transformations/**" + - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-transformations/**" + - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 875c02c61a..8657f53c6d 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -6,17 +6,17 @@ on: workflow_dispatch: push: paths: - - "contrib/ruby_event_store-transformations/**" + - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "contrib/ruby_event_store-transformations/**" + - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -26,6 +26,8 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index 4d37311784..091e45e893 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -8,17 +8,17 @@ on: workflow_dispatch: push: paths: - - "ruby_event_store/Gemfile.lock" + - ruby_event_store/Gemfile.lock - ".github/workflows/ruby_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "ruby_event_store/Gemfile.lock" + - ruby_event_store/Gemfile.lock - ".github/workflows/ruby_event_store_coverage.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 35b40eec31..cf6766a5ae 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store_mutate.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index a5a1134c9d..e7f8e7d4a4 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -6,27 +6,27 @@ on: workflow_dispatch: push: paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" pull_request: types: [opened, reopened] paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** - ".github/workflows/ruby_event_store_test.yml" - - "support/**" + - support/** - "!support/bundler/**" - "!support/ci/**" jobs: @@ -36,6 +36,8 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" + services: + strategy: fail-fast: false matrix: diff --git a/support/ci/contrib.yaml.erb b/support/ci/contrib.yaml.erb deleted file mode 100644 index 218b879d8b..0000000000 --- a/support/ci/contrib.yaml.erb +++ /dev/null @@ -1,33 +0,0 @@ -name: <%= name %> -on: - repository_dispatch: - types: - - script - workflow_dispatch: - push: - paths: - - "<%= working_directory %>/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: - - "<%= working_directory %>/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" -jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - env: - <%= env %> - strategy: - fail-fast: false - matrix: - include: - <%= matrix %> - steps: - <%= steps %> \ No newline at end of file diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb index b9237b85aa..3751c95688 100644 --- a/support/ci/coverage.yaml.erb +++ b/support/ci/coverage.yaml.erb @@ -8,19 +8,11 @@ on: workflow_dispatch: push: paths: - - "<%= working_directory %>/Gemfile.lock" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" + <%= paths %> pull_request: types: [opened, reopened] paths: - - "<%= working_directory %>/Gemfile.lock" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" + <%= paths %> jobs: <%= job_name %>: runs-on: ubuntu-20.04 diff --git a/support/ci/db.yaml.erb b/support/ci/db.yaml.erb deleted file mode 100644 index 03e86e8c0e..0000000000 --- a/support/ci/db.yaml.erb +++ /dev/null @@ -1,45 +0,0 @@ -name: <%= name %> -on: - repository_dispatch: - types: - - script - workflow_dispatch: - push: - paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" -jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - env: - <%= env %> - services: - <%= services %> - strategy: - fail-fast: false - matrix: - include: - <%= matrix %> - steps: - <%= steps %> \ No newline at end of file diff --git a/support/ci/dres_client.yaml.erb b/support/ci/dres_client.yaml.erb deleted file mode 100644 index 2e7cf13cf5..0000000000 --- a/support/ci/dres_client.yaml.erb +++ /dev/null @@ -1,35 +0,0 @@ -name: <%= name %> -on: - repository_dispatch: - types: - - script - workflow_dispatch: - push: - paths: - - "contrib/dres_client/**" - - "contrib/dres_rails/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: - - "<%= working_directory %>/**" - - "contrib/dres_rails/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" -jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - env: - <%= env %> - strategy: - fail-fast: false - matrix: - include: - <%= matrix %> - steps: - <%= steps %> \ No newline at end of file diff --git a/support/ci/dres_rails.yaml.erb b/support/ci/dres_rails.yaml.erb deleted file mode 100644 index 94932079d4..0000000000 --- a/support/ci/dres_rails.yaml.erb +++ /dev/null @@ -1,37 +0,0 @@ -name: <%= name %> -on: - repository_dispatch: - types: - - script - workflow_dispatch: - push: - paths: - - "contrib/dres_client/**" - - "contrib/dres_rails/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: - - "<%= working_directory %>/**" - - "contrib/dres_client/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" -jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - env: - <%= env %> - services: - <%= services %> - strategy: - fail-fast: false - matrix: - include: - <%= matrix %> - steps: - <%= steps %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index b1feccbef3..6e1d018d75 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -117,8 +117,7 @@ class CI generate(database_url(POSTGRES), data_type(DATA_TYPES_IN_AR)), generate(database_url(MYSQL), data_type(DATA_TYPES_IN_AR.take(2))) ) - ), - template: "db.yaml.erb" + ) ), release_mutate("ruby_event_store-active_record"), release_coverage("ruby_event_store-active_record"), @@ -143,7 +142,6 @@ class CI database_url(SQLITE3, MYSQL_5, MYSQL_8) ) ), - template: "rom.yaml.erb", steps: [ checkout, setup_nix, @@ -214,8 +212,7 @@ class CI database_url(MYSQL), data_type(DATA_TYPES_IN_SEQUEL.take(1)) ) - ), - template: "rom.yaml.erb" + ) ), contrib_mutate("ruby_event_store-rom"), contrib_coverage("ruby_event_store-rom"), @@ -242,8 +239,7 @@ class CI database_url(MYSQL), data_type(DATA_TYPES_IN_SEQUEL.take(1)) ) - ), - template: "rom.yaml.erb" + ) ), contrib_mutate("ruby_event_store-sequel"), contrib_coverage("ruby_event_store-sequel"), @@ -253,7 +249,7 @@ class CI join( generate( ruby_version(MRI_RUBY), - bundle_gemfile(GEMFILE, SIDEKIQ_GEMFILES), + bundle_gemfile(GEMFILE, SIDEKIQ_GEMFILES) ) ), steps: [ @@ -293,7 +289,7 @@ class CI contrib_test("minitest-ruby_event_store"), contrib_mutate("minitest-ruby_event_store"), contrib_coverage("minitest-ruby_event_store"), - contrib_test("dres_client", template: "dres_client.yaml.erb"), + contrib_test("dres_client", paths: dres_paths("dres_client_test")), contrib_test( "dres_rails", services: [postgres_11, postgres_15], @@ -306,7 +302,7 @@ class CI data_type(DATA_TYPES_IN_AR) ) ), - template: "dres_rails.yaml.erb" + paths: dres_paths("dres_rails_test") ), assets("ruby_event_store-browser") ] @@ -405,10 +401,11 @@ class CI module Workflows def release_test( name, - template: "release.yaml.erb", + template: "template.yaml.erb", matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("test")], - services: [] + services: [], + paths: release_paths("#{name}_test") ) { name: "#{name}_test", @@ -417,16 +414,18 @@ class CI template: template, job_name: "test", services: services, - steps: steps + steps: steps, + paths: paths } end def contrib_test( name, - template: "contrib.yaml.erb", + template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("test")], - services: [] + services: [], + paths: contrib_paths("#{name}_test", "contrib/#{name}") ) { name: "#{name}_test", @@ -435,13 +434,14 @@ class CI template: template, job_name: "test", services: services, - steps: steps + steps: steps, + paths: paths } end def release_mutate( name, - template: "release.yaml.erb", + template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [ checkout(depth: 0), @@ -449,7 +449,8 @@ class CI setup_ruby, make("mutate-changes") ], - services: [] + services: [], + paths: release_paths("#{name}_mutate") ) { name: "#{name}_mutate", @@ -458,13 +459,14 @@ class CI template: template, job_name: "mutate", services: services, - steps: steps + steps: steps, + paths: paths } end def contrib_mutate( name, - template: "contrib.yaml.erb", + template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [ checkout(depth: 0), @@ -472,7 +474,8 @@ class CI setup_ruby, make("mutate-changes") ], - services: [] + services: [], + paths: contrib_paths("#{name}_mutate", "contrib/#{name}") ) { name: "#{name}_mutate", @@ -481,7 +484,8 @@ class CI template: template, job_name: "mutate", services: services, - steps: steps + steps: steps, + paths: paths } end @@ -490,7 +494,8 @@ class CI template: "coverage.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], - services: [] + services: [], + paths: coverage_paths("#{name}_coverage", name) ) { name: "#{name}_coverage", @@ -499,7 +504,8 @@ class CI template: template, job_name: "coverage", services: services, - steps: steps + steps: steps, + paths: paths } end @@ -508,7 +514,8 @@ class CI template: "coverage.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], - services: [] + services: [], + paths: coverage_paths("#{name}_coverage", "contrib/#{name}") ) { name: "#{name}_coverage", @@ -517,7 +524,8 @@ class CI template: template, job_name: "coverage", services: services, - steps: steps + steps: steps, + paths: paths } end @@ -529,12 +537,67 @@ class CI template: template, job_name: "assets", services: [], - steps: [] + steps: [], + paths: [] } end end include Workflows + module Paths + def release_paths(workflow_name) + [ + %w[ + aggregate_root + rails_event_store + ruby_event_store + ruby_event_store-active_record + ruby_event_store-browser + ruby_event_store-rspec + ].map { |name| "#{name}/**" }, + workflow_paths(workflow_name), + support_paths + ].reduce(&:concat).uniq + end + + def contrib_paths(workflow_name, working_directory) + [ + own_paths(working_directory), + workflow_paths(workflow_name), + support_paths + ].reduce(&:concat).uniq + end + + def coverage_paths(workflow_name, working_directory) + [ + [working_directory].map { |wd| "#{wd}/Gemfile.lock" }, + workflow_paths(workflow_name), + support_paths + ].reduce(&:concat).uniq + end + + def dres_paths(workflow_name) + [ + %w[dres_client dres_rails].map { |name| "contrib/#{name}/**" }, + workflow_paths(workflow_name), + support_paths + ].reduce(&:concat).uniq + end + + def own_paths(working_directory) + %W[#{working_directory}/**] + end + + def workflow_paths(workflow_name) + %W[.github/workflows/#{workflow_name}.yml] + end + + def support_paths + %w[support/** !support/bundler/** !support/ci/**] + end + end + include Paths + module Services def postgres_11 { @@ -643,7 +706,9 @@ class CI working_directory: gem.fetch(:working_directory), matrix: as_formatted_yaml(gem.fetch(:matrix), indent: 10), steps: as_formatted_yaml(gem.fetch(:steps), indent: 6), - services: as_formatted_yaml(gem.fetch(:services).reduce(&:merge), indent: 6), + services: + as_formatted_yaml(gem.fetch(:services).reduce(&:merge), indent: 6), + paths: as_formatted_yaml(gem.fetch(:paths), indent: 6), job_name: gem.fetch(:job_name), env: as_formatted_yaml( diff --git a/support/ci/release.yaml.erb b/support/ci/release.yaml.erb deleted file mode 100644 index 9ca71f3a5a..0000000000 --- a/support/ci/release.yaml.erb +++ /dev/null @@ -1,43 +0,0 @@ -name: <%= name %> -on: - repository_dispatch: - types: - - script - workflow_dispatch: - push: - paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: - - "aggregate_root/**" - - "rails_event_store/**" - - "ruby_event_store/**" - - "ruby_event_store-active_record/**" - - "ruby_event_store-browser/**" - - "ruby_event_store-rspec/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" -jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - env: - <%= env %> - strategy: - fail-fast: false - matrix: - include: - <%= matrix %> - steps: - <%= steps %> \ No newline at end of file diff --git a/support/ci/rom.yaml.erb b/support/ci/template.yaml.erb similarity index 55% rename from support/ci/rom.yaml.erb rename to support/ci/template.yaml.erb index 96dd31cd50..328814ea7e 100644 --- a/support/ci/rom.yaml.erb +++ b/support/ci/template.yaml.erb @@ -6,19 +6,11 @@ on: workflow_dispatch: push: paths: - - "<%= working_directory %>/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" + <%= paths %> pull_request: types: [opened, reopened] paths: - - "<%= working_directory %>/**" - - ".github/workflows/<%= name %>.yml" - - "support/**" - - "!support/bundler/**" - - "!support/ci/**" + <%= paths %> jobs: <%= job_name %>: runs-on: ubuntu-20.04 From ea1c714e77a3bfc4eca14f61c5cdf668da41ab19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 16:55:07 +0200 Subject: [PATCH 04/17] Take a step back in order to move forward --- .github/workflows/aggregate_root_mutate.yml | 3 +-- .github/workflows/aggregate_root_test.yml | 3 +-- .github/workflows/dres_client_test.yml | 3 +-- .github/workflows/dres_rails_test.yml | 2 ++ .github/workflows/minitest-ruby_event_store_mutate.yml | 3 +-- .github/workflows/minitest-ruby_event_store_test.yml | 3 +-- .github/workflows/rails_event_store_mutate.yml | 3 +-- .github/workflows/rails_event_store_test.yml | 3 +-- .github/workflows/ruby_event_store-active_record_mutate.yml | 3 +-- .github/workflows/ruby_event_store-active_record_test.yml | 2 ++ .github/workflows/ruby_event_store-browser_mutate.yml | 3 +-- .github/workflows/ruby_event_store-browser_test.yml | 3 +-- .github/workflows/ruby_event_store-flipper_mutate.yml | 3 +-- .github/workflows/ruby_event_store-flipper_test.yml | 3 +-- .github/workflows/ruby_event_store-newrelic_mutate.yml | 3 +-- .github/workflows/ruby_event_store-newrelic_test.yml | 3 +-- .github/workflows/ruby_event_store-outbox_mutate.yml | 3 +-- .github/workflows/ruby_event_store-outbox_test.yml | 2 ++ .github/workflows/ruby_event_store-profiler_mutate.yml | 3 +-- .github/workflows/ruby_event_store-profiler_test.yml | 3 +-- .github/workflows/ruby_event_store-protobuf_mutate.yml | 3 +-- .github/workflows/ruby_event_store-protobuf_test.yml | 3 +-- .github/workflows/ruby_event_store-rom_mutate.yml | 3 +-- .github/workflows/ruby_event_store-rom_test.yml | 2 ++ .github/workflows/ruby_event_store-rspec_mutate.yml | 3 +-- .github/workflows/ruby_event_store-rspec_test.yml | 3 +-- .github/workflows/ruby_event_store-sequel_mutate.yml | 3 +-- .github/workflows/ruby_event_store-sequel_test.yml | 2 ++ .../workflows/ruby_event_store-sidekiq_scheduler_mutate.yml | 3 +-- .github/workflows/ruby_event_store-sidekiq_scheduler_test.yml | 3 +-- .github/workflows/ruby_event_store-transformations_mutate.yml | 3 +-- .github/workflows/ruby_event_store-transformations_test.yml | 3 +-- .github/workflows/ruby_event_store_mutate.yml | 3 +-- .github/workflows/ruby_event_store_test.yml | 3 +-- support/ci/template.yaml.erb | 2 ++ 35 files changed, 41 insertions(+), 58 deletions(-) diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index d886807d49..4836eaf41f 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 25781f7c06..57f7af78ba 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index cee3aafb34..c258996d92 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -28,8 +28,7 @@ jobs: WORKING_DIRECTORY: contrib/dres_client RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 84e5b504f5..698bbb528f 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -30,6 +30,7 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" + services: postgres_11: image: postgres:11 @@ -49,6 +50,7 @@ jobs: - 10015:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: fail-fast: false matrix: diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 89dfad2723..f87986856b 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index a3c5a8d53a..b3d670a1f7 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 75483c16fe..742bc9dcdb 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 1d4ac2768d..e348f62403 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 152953d8e5..5ef64257d5 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index eedf11ea1a..5ce4b13e14 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -38,6 +38,7 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" + services: postgres_11: image: postgres:11 @@ -75,6 +76,7 @@ jobs: - 10008:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index 924f395da7..e3fe1e7d0c 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 9e12a23039..024389631e 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 6ae1bd802b..a78ab395fb 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index da750e3298..73ef91ab50 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 6ff3e59eff..875cf72c41 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 3f20c968c1..d3ab87272a 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index affcbf4917..12f0646829 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index e640abb3cf..283e37a88e 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -27,6 +27,7 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" + services: mysql_5: image: mysql:5 @@ -46,6 +47,7 @@ jobs: - 10008:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index d1229b1885..4eea553e81 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 938dfdcc3c..3acf2245be 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index e1a6d7a14f..165b23b9e4 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index 05a11e7665..ef6e0a9cfa 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -27,8 +27,7 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index ef747395c3..573a07fd9b 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index b1e835fc58..c5c573c3c0 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -28,6 +28,7 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" + services: postgres_11: image: postgres:11 @@ -65,6 +66,7 @@ jobs: - 10008:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index 68ac016141..eab60be331 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 46acd535f6..e6b47d6335 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 2714b756a4..8ee7ab2e4a 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 5567780958..d6bc210169 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -28,6 +28,7 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" + services: postgres_11: image: postgres:11 @@ -65,6 +66,7 @@ jobs: - 10008:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index b954234f11..e11b2d1768 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index e82f2136ce..66af174164 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index e9c81ab492..a66ab10e10 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 8657f53c6d..209121853a 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -26,8 +26,7 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index cf6766a5ae..33b74891c7 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index e7f8e7d4a4..484421b478 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -36,8 +36,7 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - services: - + strategy: fail-fast: false matrix: diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index 328814ea7e..566add9f48 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -16,8 +16,10 @@ jobs: runs-on: ubuntu-20.04 env: <%= env %> +<% unless services.empty? %> services: <%= services %> +<% end %> strategy: fail-fast: false matrix: From 031a997b0acaf42939d2937e7aeeea0bc0986eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 17:17:33 +0200 Subject: [PATCH 05/17] Not a bad idea to set stricter timeouts By default that is 360 minutes. --- .github/workflows/aggregate_root_mutate.yml | 1 + .github/workflows/aggregate_root_test.yml | 1 + .github/workflows/dres_client_test.yml | 1 + .github/workflows/dres_rails_test.yml | 1 + .github/workflows/minitest-ruby_event_store_mutate.yml | 1 + .github/workflows/minitest-ruby_event_store_test.yml | 1 + .github/workflows/rails_event_store_mutate.yml | 1 + .github/workflows/rails_event_store_test.yml | 1 + .github/workflows/ruby_event_store-active_record_mutate.yml | 1 + .github/workflows/ruby_event_store-active_record_test.yml | 1 + .github/workflows/ruby_event_store-browser_assets.yml | 1 + .github/workflows/ruby_event_store-browser_mutate.yml | 1 + .github/workflows/ruby_event_store-browser_test.yml | 1 + .github/workflows/ruby_event_store-flipper_mutate.yml | 1 + .github/workflows/ruby_event_store-flipper_test.yml | 1 + .github/workflows/ruby_event_store-newrelic_mutate.yml | 1 + .github/workflows/ruby_event_store-newrelic_test.yml | 1 + .github/workflows/ruby_event_store-outbox_mutate.yml | 1 + .github/workflows/ruby_event_store-outbox_test.yml | 1 + .github/workflows/ruby_event_store-profiler_mutate.yml | 1 + .github/workflows/ruby_event_store-profiler_test.yml | 1 + .github/workflows/ruby_event_store-protobuf_mutate.yml | 1 + .github/workflows/ruby_event_store-protobuf_test.yml | 1 + .github/workflows/ruby_event_store-rom_mutate.yml | 1 + .github/workflows/ruby_event_store-rom_test.yml | 1 + .github/workflows/ruby_event_store-rspec_mutate.yml | 1 + .github/workflows/ruby_event_store-rspec_test.yml | 1 + .github/workflows/ruby_event_store-sequel_mutate.yml | 1 + .github/workflows/ruby_event_store-sequel_test.yml | 1 + .github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml | 1 + .github/workflows/ruby_event_store-sidekiq_scheduler_test.yml | 1 + .github/workflows/ruby_event_store-transformations_mutate.yml | 1 + .github/workflows/ruby_event_store-transformations_test.yml | 1 + .github/workflows/ruby_event_store_mutate.yml | 1 + .github/workflows/ruby_event_store_test.yml | 1 + support/ci/assets.yaml.erb | 1 + support/ci/template.yaml.erb | 1 + 37 files changed, 37 insertions(+) diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 4836eaf41f..49160009b4 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 57f7af78ba..49a60c6cb3 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index c258996d92..709143dbcd 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -24,6 +24,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/dres_client RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 698bbb528f..8e6223fce8 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -24,6 +24,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/dres_rails RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index f87986856b..4c6ef2319b 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index b3d670a1f7..d411d6780e 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 742bc9dcdb..1743eaa596 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index e348f62403..60bcf6f4a3 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 5ef64257d5..59cf97a9a0 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 5ce4b13e14..e0c0593d5b 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index a1c241294a..6b133bc742 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -6,6 +6,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser strategy: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index e3fe1e7d0c..69eda9d249 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 024389631e..0f2753d9da 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index a78ab395fb..e237a58152 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 73ef91ab50..13b41eaff1 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 875cf72c41..d2f3515277 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index d3ab87272a..7f01223790 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 12f0646829..e3760fa303 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 283e37a88e..df4a2efec1 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 4eea553e81..b3ceedcbc2 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 3acf2245be..d8e0b8ca04 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 165b23b9e4..77b536f1ea 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index ef6e0a9cfa..9b8196a3a4 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 573a07fd9b..cb48078290 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index c5c573c3c0..074b9117b4 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index eab60be331..f7fd774bb1 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index e6b47d6335..f8b03304a5 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 8ee7ab2e4a..5386f7f562 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index d6bc210169..8f64c875d4 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index e11b2d1768..3794838e1c 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index 66af174164..8d9d594b9c 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index a66ab10e10..4d7c19f46b 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -22,6 +22,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 209121853a..35c4e3b141 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -22,6 +22,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 33b74891c7..c50a1cafb6 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -32,6 +32,7 @@ on: jobs: mutate: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 484421b478..c94da635ce 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -32,6 +32,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb index d87badf22a..be047f7cd2 100644 --- a/support/ci/assets.yaml.erb +++ b/support/ci/assets.yaml.erb @@ -6,6 +6,7 @@ on: jobs: test: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: <%= env %> strategy: diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index 566add9f48..ea6e2a8ca7 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -14,6 +14,7 @@ on: jobs: <%= job_name %>: runs-on: ubuntu-20.04 + timeout-minutes: 120 env: <%= env %> <% unless services.empty? %> From bb2edc95b70ae5d1f2e567af2fc9dec5fd6b1020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 17:46:23 +0200 Subject: [PATCH 06/17] Same, but different --- support/ci/generate | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/support/ci/generate b/support/ci/generate index 6e1d018d75..f35e1c406e 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -533,7 +533,7 @@ class CI { name: "#{name}_assets", working_directory: name, - matrix: [{}], + matrix: [], template: template, job_name: "assets", services: [], @@ -726,9 +726,12 @@ class CI def matrix_env_vars(matrix) matrix - .first - .keys - .reduce({}) { |acc, key| acc.merge(key.upcase => "${{ matrix.#{key} }}") } + .take(1) + .reduce({}) do |acc, matrix_item| + matrix_item.reduce(acc) do |acc, (key, _)| + acc.merge(key.upcase => "${{ matrix.#{key} }}") + end + end end def as_formatted_yaml(content, indent:) From db1a61084e916de9e6c01b7713f875526d96680f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 17:51:59 +0200 Subject: [PATCH 07/17] Less and less responsibiliy on the template --- .github/workflows/aggregate_root_coverage.yml | 4 +- .github/workflows/aggregate_root_mutate.yml | 4 +- .github/workflows/aggregate_root_test.yml | 16 ++-- .github/workflows/dres_client_test.yml | 12 +-- .github/workflows/dres_rails_test.yml | 48 +++++----- .../minitest-ruby_event_store_coverage.yml | 4 +- .../minitest-ruby_event_store_mutate.yml | 4 +- .../minitest-ruby_event_store_test.yml | 12 +-- .../workflows/rails_event_store_coverage.yml | 4 +- .../workflows/rails_event_store_mutate.yml | 4 +- .github/workflows/rails_event_store_test.yml | 24 ++--- ...uby_event_store-active_record_coverage.yml | 4 +- .../ruby_event_store-active_record_mutate.yml | 4 +- .../ruby_event_store-active_record_test.yml | 88 +++++++++---------- .../ruby_event_store-browser_coverage.yml | 4 +- .../ruby_event_store-browser_mutate.yml | 4 +- .../ruby_event_store-browser_test.yml | 20 ++--- .../ruby_event_store-flipper_coverage.yml | 4 +- .../ruby_event_store-flipper_mutate.yml | 4 +- .../ruby_event_store-flipper_test.yml | 20 ++--- .../ruby_event_store-newrelic_coverage.yml | 4 +- .../ruby_event_store-newrelic_mutate.yml | 4 +- .../ruby_event_store-newrelic_test.yml | 12 +-- .../ruby_event_store-outbox_coverage.yml | 4 +- .../ruby_event_store-outbox_mutate.yml | 4 +- .../ruby_event_store-outbox_test.yml | 48 +++++----- .../ruby_event_store-profiler_coverage.yml | 4 +- .../ruby_event_store-profiler_mutate.yml | 4 +- .../ruby_event_store-profiler_test.yml | 12 +-- .../ruby_event_store-protobuf_coverage.yml | 4 +- .../ruby_event_store-protobuf_mutate.yml | 4 +- .../ruby_event_store-protobuf_test.yml | 30 +++---- .../ruby_event_store-rom_coverage.yml | 4 +- .../workflows/ruby_event_store-rom_mutate.yml | 4 +- .../workflows/ruby_event_store-rom_test.yml | 72 +++++++-------- .../ruby_event_store-rspec_coverage.yml | 4 +- .../ruby_event_store-rspec_mutate.yml | 4 +- .../workflows/ruby_event_store-rspec_test.yml | 16 ++-- .../ruby_event_store-sequel_coverage.yml | 4 +- .../ruby_event_store-sequel_mutate.yml | 4 +- .../ruby_event_store-sequel_test.yml | 72 +++++++-------- ...event_store-sidekiq_scheduler_coverage.yml | 4 +- ...y_event_store-sidekiq_scheduler_mutate.yml | 4 +- ...uby_event_store-sidekiq_scheduler_test.yml | 20 ++--- ...y_event_store-transformations_coverage.yml | 4 +- ...uby_event_store-transformations_mutate.yml | 4 +- .../ruby_event_store-transformations_test.yml | 12 +-- .../workflows/ruby_event_store_coverage.yml | 4 +- .github/workflows/ruby_event_store_mutate.yml | 4 +- .github/workflows/ruby_event_store_test.yml | 16 ++-- support/ci/coverage.yaml.erb | 5 +- support/ci/generate | 11 ++- support/ci/template.yaml.erb | 5 +- 53 files changed, 351 insertions(+), 348 deletions(-) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index e8d1a5ddd2..ad527e3aa4 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 49160009b4..02a08b5f90 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 49a60c6cb3..623512ba65 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -42,14 +42,14 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: truffleruby - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: truffleruby + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index 709143dbcd..e967d6605b 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -34,12 +34,12 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 8e6223fce8..bac01e8d52 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -56,30 +56,30 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - 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:10015/rails_event_store?pool=5 - data_type: binary - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - 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:10015/rails_event_store?pool=5 - data_type: json - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 - data_type: jsonb + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + 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:10015/rails_event_store?pool=5 + data_type: binary + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + 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:10015/rails_event_store?pool=5 + data_type: json + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 + data_type: jsonb steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 416f7d4ca1..816d3dc46c 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 4c6ef2319b..fa34f2e36f 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index d411d6780e..93fe5b7479 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index a02040082f..246b5e4a2c 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 1743eaa596..4a3e95efdc 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 60bcf6f4a3..bb1a5fd5d8 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -42,18 +42,18 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: truffleruby - bundle_gemfile: Gemfile - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_1 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_0 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: truffleruby + bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_1 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_0 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index 889cc159d3..0f514b6d76 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 59cf97a9a0..3bdee5ece4 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index e0c0593d5b..2b596317da 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -82,50 +82,50 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - data_type: binary - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - data_type: binary - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - data_type: binary - - ruby_version: truffleruby - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - data_type: binary - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - 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:10015/rails_event_store?pool=5 - data_type: json - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 - data_type: jsonb - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 - data_type: binary - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 - data_type: binary - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 - data_type: json + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: truffleruby + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + 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:10015/rails_event_store?pool=5 + data_type: json + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 + data_type: jsonb + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 + data_type: binary + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 + data_type: binary + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 + data_type: json steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 4824fffb2a..2905aa927b 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index 69eda9d249..df32eb5930 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 0f2753d9da..6c43c87da4 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -42,16 +42,16 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: truffleruby - bundle_gemfile: Gemfile - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rack_2_0 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: truffleruby + bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rack_2_0 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index 1721115b1b..c311daa351 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index e237a58152..35c2cf6c56 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 13b41eaff1..3ceb05c1e1 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -32,16 +32,16 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.activesupport_6_1 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.activesupport_6_0 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.activesupport_6_1 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.activesupport_6_0 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index ebf858789d..c6d7e822eb 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index d2f3515277..24eec33577 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 7f01223790..7a82b41a9c 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 3700006bb0..8a9b728d56 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index e3760fa303..1eb8979978 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index df4a2efec1..0711268473 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -53,30 +53,30 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_1 - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_0 - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.sidekiq_5_2 - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_1 + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_0 + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.sidekiq_5_2 + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index b0bafcded5..1688614602 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index b3ceedcbc2..3f590820d0 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index d8e0b8ca04..901316eba5 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index f698f403fb..99071a8f27 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 77b536f1ea..4e4928472d 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index 9b8196a3a4..a6a1b4cda8 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -33,21 +33,21 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_1 - database_url: sqlite3:db.sqlite3 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.rails_6_0 - database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_1 + database_url: sqlite3:db.sqlite3 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.rails_6_0 + database_url: sqlite3:db.sqlite3 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index db3f6ecc14..3744b3f501 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index cb48078290..2407400c1b 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 074b9117b4..efd715491e 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -72,42 +72,42 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - 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:10015/rails_event_store?pool=5 - data_type: json - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 - data_type: jsonb - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 - data_type: text - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 - data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + 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:10015/rails_event_store?pool=5 + data_type: json + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 + data_type: jsonb + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 + data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 + data_type: text steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index fe059cec60..f836050e25 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index f7fd774bb1..ab694dd391 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index f8b03304a5..9104b42d8f 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -42,14 +42,14 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: truffleruby - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: truffleruby + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 2e93e92efc..0cd7b24932 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 5386f7f562..dbdcc9461b 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 8f64c875d4..e48a404628 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -72,42 +72,42 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - database_url: sqlite:db.sqlite3 - data_type: text - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - 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:10015/rails_event_store?pool=5 - data_type: json - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 - data_type: jsonb - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 - data_type: text - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 - data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + database_url: sqlite:db.sqlite3 + data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + 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:10015/rails_event_store?pool=5 + data_type: json + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 + data_type: jsonb + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 + data_type: text + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 + data_type: text steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 17b3c9b866..9e86c92a7a 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 3794838e1c..152f8e1dd2 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index 8d9d594b9c..991162f932 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -32,16 +32,16 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.sidekiq_6_5 - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile.sidekiq_5_2 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.sidekiq_6_5 + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile.sidekiq_5_2 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index bf4d756076..c33b608194 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 4d7c19f46b..0e96016133 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -32,8 +32,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 35c4e3b141..1f4797c17f 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index 091e45e893..f5039242fd 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -33,8 +33,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index c50a1cafb6..b2fbfbdc77 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index c94da635ce..7b0dc6206c 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -42,14 +42,14 @@ jobs: fail-fast: false matrix: include: - - ruby_version: ruby-3.2 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.1 - bundle_gemfile: Gemfile - - ruby_version: ruby-3.0 - bundle_gemfile: Gemfile - - ruby_version: truffleruby - bundle_gemfile: Gemfile + - ruby_version: ruby-3.2 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.1 + bundle_gemfile: Gemfile + - ruby_version: ruby-3.0 + bundle_gemfile: Gemfile + - ruby_version: truffleruby + bundle_gemfile: Gemfile steps: - uses: actions/checkout@v3 with: diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb index 3751c95688..328d9dae29 100644 --- a/support/ci/coverage.yaml.erb +++ b/support/ci/coverage.yaml.erb @@ -20,9 +20,6 @@ jobs: env: <%= env %> strategy: - fail-fast: false - matrix: - include: - <%= matrix %> + <%= strategy %> steps: <%= steps %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index f35e1c406e..b66f6258a5 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -704,7 +704,16 @@ class CI ).result_with_hash( name: name, working_directory: gem.fetch(:working_directory), - matrix: as_formatted_yaml(gem.fetch(:matrix), indent: 10), + strategy: + as_formatted_yaml( + { + "fail-fast" => false, + "matrix" => { + "include" => gem.fetch(:matrix) + } + }, + indent: 6 + ), steps: as_formatted_yaml(gem.fetch(:steps), indent: 6), services: as_formatted_yaml(gem.fetch(:services).reduce(&:merge), indent: 6), diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index ea6e2a8ca7..e738ba26a2 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -22,9 +22,6 @@ jobs: <%= services %> <% end %> strategy: - fail-fast: false - matrix: - include: - <%= matrix %> + <%= strategy %> steps: <%= steps %> \ No newline at end of file From b2063591bbe222da60d892f7c03ba3a6a3f94f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 17:55:09 +0200 Subject: [PATCH 08/17] Assets workflow generated from its steps --- .../ruby_event_store-browser_assets.yml | 39 +++++++-------- support/ci/assets.yaml.erb | 49 ++++--------------- support/ci/generate | 48 +++++++++++++++++- 3 files changed, 74 insertions(+), 62 deletions(-) diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 6b133bc742..93db273c9e 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -2,46 +2,43 @@ name: ruby_event_store-browser_assets on: push: workflow_dispatch: - jobs: - test: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: + assets: + runs-on: ubuntu-20.04 + timeout-minutes: 120 + env: WORKING_DIRECTORY: ruby_event_store-browser - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-20.04 + steps: - uses: actions/checkout@v3 + with: + fetch-depth: 1 - uses: actions/setup-node@v3 with: node-version: 18 - cache: "npm" - cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/elm/package-lock.json + cache: npm + cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" - uses: actions/cache@v3 with: - path: ~/.elm + path: "~/.elm" key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - run: make install-npm - working-directory: ${{ env.WORKING_DIRECTORY }} + working-directory: "${{ env.WORKING_DIRECTORY }}" - run: make build-npm - working-directory: ${{ env.WORKING_DIRECTORY }} + working-directory: "${{ env.WORKING_DIRECTORY }}" - uses: actions/upload-artifact@v3 with: name: ruby_event_store_browser.js - path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js" - uses: actions/upload-artifact@v3 with: name: ruby_event_store_browser.css - path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css" - uses: aws-actions/configure-aws-credentials@v1-node16 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}" + aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" aws-region: eu-central-1 - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }} - + - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ + env.SHORT_SHA }} \ No newline at end of file diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb index be047f7cd2..deefb6a629 100644 --- a/support/ci/assets.yaml.erb +++ b/support/ci/assets.yaml.erb @@ -2,46 +2,15 @@ name: <%= name %> on: push: workflow_dispatch: - jobs: - test: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: + <%= job_name %>: + runs-on: ubuntu-20.04 + timeout-minutes: 120 + env: <%= env %> - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-20.04 +<% unless services.empty? %> + services: + <%= services %> +<% end %> steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: "npm" - cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/elm/package-lock.json - - uses: actions/cache@v3 - with: - path: ~/.elm - key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - - run: make install-npm - working-directory: ${{ env.WORKING_DIRECTORY }} - - run: make build-npm - working-directory: ${{ env.WORKING_DIRECTORY }} - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.js - path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.css - path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css - - uses: aws-actions/configure-aws-credentials@v1-node16 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: eu-central-1 - - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }} - + <%= steps %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index b66f6258a5..9d88e6cb4c 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -395,6 +395,41 @@ class CI "working-directory" => "${{ env.WORKING_DIRECTORY }}" } end + + def upload_artifact(name) + { + "uses" => "actions/upload-artifact@v3", + "with" => { + "name" => name, + "path" => "${{ env.WORKING_DIRECTORY }}/public/#{name}" + } + } + end + + def configure_aws_credentials + { + "uses" => "aws-actions/configure-aws-credentials@v1-node16", + "with" => { + "aws-access-key-id" => "${{ secrets.AWS_ACCESS_KEY_ID }}", + "aws-secret-access-key" => "${{ secrets.AWS_SECRET_ACCESS_KEY }}", + "aws-region" => "eu-central-1" + } + } + end + + def set_short_sha_env + { + "run" => + "echo \"SHORT_SHA=$(git rev-parse --short=12 HEAD)\" >> $GITHUB_ENV" + } + end + + def aws_s3_sync + { + "run" => + "aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }}" + } + end end include Actions @@ -537,7 +572,18 @@ class CI template: template, job_name: "assets", services: [], - steps: [], + steps: [ + checkout, + setup_node, + cache_elm, + make("install-npm"), + make("build-npm"), + upload_artifact("ruby_event_store_browser.js"), + upload_artifact("ruby_event_store_browser.css"), + configure_aws_credentials, + set_short_sha_env, + aws_s3_sync + ], paths: [] } end From 652a24292d8a635c4962212d9eb3c76de1dc1105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 17:59:16 +0200 Subject: [PATCH 09/17] Pass the whole job to the CI workflow template --- .github/workflows/aggregate_root_coverage.yml | 22 +++--- .github/workflows/aggregate_root_mutate.yml | 23 +++--- .github/workflows/aggregate_root_test.yml | 23 +++--- .github/workflows/dres_client_test.yml | 23 +++--- .github/workflows/dres_rails_test.yml | 36 +++++---- .../minitest-ruby_event_store_coverage.yml | 22 +++--- .../minitest-ruby_event_store_mutate.yml | 23 +++--- .../minitest-ruby_event_store_test.yml | 23 +++--- .../workflows/rails_event_store_coverage.yml | 22 +++--- .../workflows/rails_event_store_mutate.yml | 23 +++--- .github/workflows/rails_event_store_test.yml | 23 +++--- ...uby_event_store-active_record_coverage.yml | 22 +++--- .../ruby_event_store-active_record_mutate.yml | 23 +++--- .../ruby_event_store-active_record_test.yml | 48 ++++++------ .../ruby_event_store-browser_assets.yml | 75 ++++++++++--------- .../ruby_event_store-browser_coverage.yml | 22 +++--- .../ruby_event_store-browser_mutate.yml | 23 +++--- .../ruby_event_store-browser_test.yml | 41 +++++----- .../ruby_event_store-flipper_coverage.yml | 22 +++--- .../ruby_event_store-flipper_mutate.yml | 23 +++--- .../ruby_event_store-flipper_test.yml | 23 +++--- .../ruby_event_store-newrelic_coverage.yml | 22 +++--- .../ruby_event_store-newrelic_mutate.yml | 23 +++--- .../ruby_event_store-newrelic_test.yml | 23 +++--- .../ruby_event_store-outbox_coverage.yml | 52 ++++++------- .../ruby_event_store-outbox_mutate.yml | 53 +++++++------ .../ruby_event_store-outbox_test.yml | 66 ++++++++-------- .../ruby_event_store-profiler_coverage.yml | 22 +++--- .../ruby_event_store-profiler_mutate.yml | 23 +++--- .../ruby_event_store-profiler_test.yml | 23 +++--- .../ruby_event_store-protobuf_coverage.yml | 22 +++--- .../ruby_event_store-protobuf_mutate.yml | 23 +++--- .../ruby_event_store-protobuf_test.yml | 23 +++--- .../ruby_event_store-rom_coverage.yml | 22 +++--- .../workflows/ruby_event_store-rom_mutate.yml | 23 +++--- .../workflows/ruby_event_store-rom_test.yml | 48 ++++++------ .../ruby_event_store-rspec_coverage.yml | 22 +++--- .../ruby_event_store-rspec_mutate.yml | 23 +++--- .../workflows/ruby_event_store-rspec_test.yml | 23 +++--- .../ruby_event_store-sequel_coverage.yml | 22 +++--- .../ruby_event_store-sequel_mutate.yml | 23 +++--- .../ruby_event_store-sequel_test.yml | 48 ++++++------ ...event_store-sidekiq_scheduler_coverage.yml | 52 ++++++------- ...y_event_store-sidekiq_scheduler_mutate.yml | 53 +++++++------ ...uby_event_store-sidekiq_scheduler_test.yml | 53 +++++++------ ...y_event_store-transformations_coverage.yml | 22 +++--- ...uby_event_store-transformations_mutate.yml | 23 +++--- .../ruby_event_store-transformations_test.yml | 23 +++--- .../workflows/ruby_event_store_coverage.yml | 22 +++--- .github/workflows/ruby_event_store_mutate.yml | 23 +++--- .github/workflows/ruby_event_store_test.yml | 23 +++--- support/ci/assets.yaml.erb | 12 +-- support/ci/coverage.yaml.erb | 10 +-- support/ci/generate | 39 +++++----- support/ci/template.yaml.erb | 14 +--- 55 files changed, 756 insertions(+), 827 deletions(-) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index ad527e3aa4..f64f03770c 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 02a08b5f90..111adbfa6e 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 623512ba65..a5e98f9f71 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -51,15 +50,15 @@ jobs: - ruby_version: truffleruby bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index e967d6605b..bf9254d3c6 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -29,7 +29,6 @@ jobs: WORKING_DIRECTORY: contrib/dres_client RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -41,15 +40,15 @@ jobs: - ruby_version: ruby-3.0 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index bac01e8d52..cb6daee4f4 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -31,27 +31,25 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" - services: - postgres_11: + - postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - postgres_15: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 strategy: fail-fast: false matrix: @@ -81,15 +79,15 @@ jobs: database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5 data_type: jsonb steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 816d3dc46c..db811bcc84 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index fa34f2e36f..6747342d4d 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index 93fe5b7479..e064faec09 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/minitest-ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -39,15 +38,15 @@ jobs: - ruby_version: ruby-3.0 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index 246b5e4a2c..d790e43ea0 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 4a3e95efdc..70d829a4dd 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index bb1a5fd5d8..6435055097 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -55,15 +54,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.rails_6_0 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index 0f514b6d76..48449c7897 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 3bdee5ece4..2649ad2d7c 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 2b596317da..bfc570d1cd 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -39,45 +39,43 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" - services: - postgres_11: + - postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - postgres_15: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -127,15 +125,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 data_type: json steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 93db273c9e..a0d8f4a2f3 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -4,41 +4,44 @@ on: workflow_dispatch: jobs: assets: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: + runs-on: ubuntu-20.04 + timeout-minutes: 120 + env: WORKING_DIRECTORY: ruby_event_store-browser - + strategy: + fail-fast: false + matrix: + include: [] steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" - - uses: actions/cache@v3 - with: - path: "~/.elm" - key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - - run: make install-npm - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make build-npm - working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.js - path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js" - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.css - path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css" - - uses: aws-actions/configure-aws-credentials@v1-node16 - with: - aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}" - aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - aws-region: eu-central-1 - - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ - env.SHORT_SHA }} \ No newline at end of file + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" + - uses: actions/cache@v3 + with: + path: "~/.elm" + key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} + - run: make install-npm + working-directory: "${{ env.WORKING_DIRECTORY }}" + - run: make build-npm + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: actions/upload-artifact@v3 + with: + name: ruby_event_store_browser.js + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js" + - uses: actions/upload-artifact@v3 + with: + name: ruby_event_store_browser.css + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css" + - uses: aws-actions/configure-aws-credentials@v1-node16 + with: + aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}" + aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" + aws-region: eu-central-1 + - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV + - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ + env.SHORT_SHA }} \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 2905aa927b..341a2ba5b0 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index df32eb5930..1059afc8a1 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 6c43c87da4..412d18ff6c 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -53,24 +52,24 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.rack_2_0 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" - - uses: actions/cache@v3 - with: - path: "~/.elm" - key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - - run: make install-npm test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" + - uses: actions/cache@v3 + with: + path: "~/.elm" + key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} + - run: make install-npm test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index c311daa351..5dbd4f6743 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 35c2cf6c56..b2cfb88372 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 3ceb05c1e1..4e1ebae294 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -43,15 +42,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.activesupport_6_0 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index c6d7e822eb..d6741ca7c9 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 24eec33577..2a94fe751a 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 7a82b41a9c..84fbecde79 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -39,15 +38,15 @@ jobs: - ruby_version: ruby-3.0 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 8a9b728d56..f30236ba35 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -36,30 +36,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make mutate" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 1eb8979978..e47de15fb8 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,30 +34,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make mutate-changes" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate-changes" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 0711268473..5a2f119b9e 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -28,27 +28,25 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" - services: - mysql_5: + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -78,30 +76,30 @@ jobs: bundle_gemfile: Gemfile database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make test" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make test" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 1688614602..1623ed8ca1 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 3f590820d0..b2d35aaf90 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 901316eba5..699baf5d57 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -39,15 +38,15 @@ jobs: - ruby_version: ruby-3.0 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index 99071a8f27..bdf33a5b58 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 4e4928472d..75d0bd1647 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index a6a1b4cda8..79ac616626 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -28,7 +28,6 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" - strategy: fail-fast: false matrix: @@ -49,15 +48,15 @@ jobs: bundle_gemfile: Gemfile.rails_6_0 database_url: sqlite3:db.sqlite3 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index 3744b3f501..ec2ae1e370 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 2407400c1b..800e9d585f 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index efd715491e..3123d9ca7c 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -29,45 +29,43 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" - services: - postgres_11: + - postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - postgres_15: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -109,15 +107,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 data_type: text steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index f836050e25..190d0d959a 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index ab694dd391..937dbbe3fc 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 9104b42d8f..17f400bb59 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -51,15 +50,15 @@ jobs: - ruby_version: truffleruby bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 0cd7b24932..d55a7b47a3 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index dbdcc9461b..7d3ae51021 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index e48a404628..aa8769246c 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -29,45 +29,43 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" - services: - postgres_11: + - postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - postgres_15: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries - 5 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -109,15 +107,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 data_type: text steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 9e86c92a7a..23e1952599 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -36,30 +36,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make mutate" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 152f8e1dd2..a9c6fdeaeb 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,30 +34,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make mutate-changes" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate-changes" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index 991162f932..ff7e5a5a74 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -43,30 +42,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.sidekiq_5_2 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: | - nix-shell --run "make test" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make test" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index c33b608194..f0827f7106 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 0e96016133..ca034b1a9f 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 1f4797c17f..8c13c66666 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -39,15 +38,15 @@ jobs: - ruby_version: ruby-3.0 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index f5039242fd..0ccd9c2194 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -36,15 +36,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index b2fbfbdc77..0548c6d8ca 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make mutate-changes - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 7b0dc6206c..7844aa1a2d 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -51,15 +50,15 @@ jobs: - ruby_version: truffleruby bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ env.RUBY_VERSION }}" + bundler-cache: true working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "${{ env.RUBY_VERSION }}" - bundler-cache: true - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb index deefb6a629..c322adb8b7 100644 --- a/support/ci/assets.yaml.erb +++ b/support/ci/assets.yaml.erb @@ -3,14 +3,4 @@ on: push: workflow_dispatch: jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> -<% unless services.empty? %> - services: - <%= services %> -<% end %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb index 328d9dae29..457c448bdb 100644 --- a/support/ci/coverage.yaml.erb +++ b/support/ci/coverage.yaml.erb @@ -14,12 +14,4 @@ on: paths: <%= paths %> jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> - strategy: - <%= strategy %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index 9d88e6cb4c..bea57fe097 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -742,6 +742,22 @@ class CI workflows.each do |gem| name = gem.fetch(:name) filename = "#{name}.yml" + env = { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( + matrix_env_vars(gem.fetch(:matrix)) + ) + job = { + "runs-on" => "ubuntu-20.04", + "timeout-minutes" => 120, + "env" => env, + "services" => gem.fetch(:services), + "strategy" => { + "fail-fast" => false, + "matrix" => { + "include" => gem.fetch(:matrix) + } + }, + "steps" => gem.fetch(:steps) + }.reject { |k, v| k == "services" && v.empty? } File.write( File.join(workflows_root, filename), @@ -749,29 +765,8 @@ class CI File.read(File.join(template_root, gem.fetch(:template))) ).result_with_hash( name: name, - working_directory: gem.fetch(:working_directory), - strategy: - as_formatted_yaml( - { - "fail-fast" => false, - "matrix" => { - "include" => gem.fetch(:matrix) - } - }, - indent: 6 - ), - steps: as_formatted_yaml(gem.fetch(:steps), indent: 6), - services: - as_formatted_yaml(gem.fetch(:services).reduce(&:merge), indent: 6), paths: as_formatted_yaml(gem.fetch(:paths), indent: 6), - job_name: gem.fetch(:job_name), - env: - as_formatted_yaml( - { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( - matrix_env_vars(gem.fetch(:matrix)) - ), - indent: 6 - ) + job: as_formatted_yaml({ gem.fetch(:job_name) => job }, indent: 2) ) ) diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index e738ba26a2..3014254e0f 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -12,16 +12,4 @@ on: paths: <%= paths %> jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> -<% unless services.empty? %> - services: - <%= services %> -<% end %> - strategy: - <%= strategy %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file From 1a48a662257e372c8da16167ef0afc6a52eb4875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 18:01:53 +0200 Subject: [PATCH 10/17] This screams "objects" --- .../ruby_event_store-browser_assets.yml | 4 --- support/ci/generate | 28 ++++++++++--------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index a0d8f4a2f3..159c001e67 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -8,10 +8,6 @@ jobs: timeout-minutes: 120 env: WORKING_DIRECTORY: ruby_event_store-browser - strategy: - fail-fast: false - matrix: - include: [] steps: - uses: actions/checkout@v3 with: diff --git a/support/ci/generate b/support/ci/generate index bea57fe097..a9da9aab33 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -745,19 +745,21 @@ class CI env = { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( matrix_env_vars(gem.fetch(:matrix)) ) - job = { - "runs-on" => "ubuntu-20.04", - "timeout-minutes" => 120, - "env" => env, - "services" => gem.fetch(:services), - "strategy" => { - "fail-fast" => false, - "matrix" => { - "include" => gem.fetch(:matrix) - } - }, - "steps" => gem.fetch(:steps) - }.reject { |k, v| k == "services" && v.empty? } + job = + { + "runs-on" => "ubuntu-20.04", + "timeout-minutes" => 120, + "env" => env, + "services" => gem.fetch(:services), + "strategy" => { + "fail-fast" => false, + "matrix" => { + "include" => gem.fetch(:matrix) + } + }, + "steps" => gem.fetch(:steps) + }.reject { |k, v| k == "services" && gem.fetch(:services).empty? } + .reject { |k, v| k == "strategy" && gem.fetch(:matrix).empty? } File.write( File.join(workflows_root, filename), From a03b0273ff46b74f547eaa698b44b6e8162d1d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 18:13:09 +0200 Subject: [PATCH 11/17] Reorder workflow triggers --- .github/workflows/aggregate_root_coverage.yml | 6 +++--- .github/workflows/aggregate_root_mutate.yml | 2 +- .github/workflows/aggregate_root_test.yml | 2 +- .github/workflows/dres_client_test.yml | 2 +- .github/workflows/dres_rails_test.yml | 2 +- .github/workflows/minitest-ruby_event_store_coverage.yml | 6 +++--- .github/workflows/minitest-ruby_event_store_mutate.yml | 2 +- .github/workflows/minitest-ruby_event_store_test.yml | 2 +- .github/workflows/rails_event_store_coverage.yml | 6 +++--- .github/workflows/rails_event_store_mutate.yml | 2 +- .github/workflows/rails_event_store_test.yml | 2 +- .../workflows/ruby_event_store-active_record_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-active_record_mutate.yml | 2 +- .github/workflows/ruby_event_store-active_record_test.yml | 2 +- .github/workflows/ruby_event_store-browser_assets.yml | 5 ++++- .github/workflows/ruby_event_store-browser_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-browser_mutate.yml | 2 +- .github/workflows/ruby_event_store-browser_test.yml | 2 +- .github/workflows/ruby_event_store-flipper_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-flipper_mutate.yml | 2 +- .github/workflows/ruby_event_store-flipper_test.yml | 2 +- .github/workflows/ruby_event_store-newrelic_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-newrelic_mutate.yml | 2 +- .github/workflows/ruby_event_store-newrelic_test.yml | 2 +- .github/workflows/ruby_event_store-outbox_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-outbox_mutate.yml | 2 +- .github/workflows/ruby_event_store-outbox_test.yml | 2 +- .github/workflows/ruby_event_store-profiler_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-profiler_mutate.yml | 2 +- .github/workflows/ruby_event_store-profiler_test.yml | 2 +- .github/workflows/ruby_event_store-protobuf_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-protobuf_mutate.yml | 2 +- .github/workflows/ruby_event_store-protobuf_test.yml | 2 +- .github/workflows/ruby_event_store-rom_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-rom_mutate.yml | 2 +- .github/workflows/ruby_event_store-rom_test.yml | 2 +- .github/workflows/ruby_event_store-rspec_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-rspec_mutate.yml | 2 +- .github/workflows/ruby_event_store-rspec_test.yml | 2 +- .github/workflows/ruby_event_store-sequel_coverage.yml | 6 +++--- .github/workflows/ruby_event_store-sequel_mutate.yml | 2 +- .github/workflows/ruby_event_store-sequel_test.yml | 2 +- .../ruby_event_store-sidekiq_scheduler_coverage.yml | 6 +++--- .../workflows/ruby_event_store-sidekiq_scheduler_mutate.yml | 2 +- .../workflows/ruby_event_store-sidekiq_scheduler_test.yml | 2 +- .../workflows/ruby_event_store-transformations_coverage.yml | 6 +++--- .../workflows/ruby_event_store-transformations_mutate.yml | 2 +- .github/workflows/ruby_event_store-transformations_test.yml | 2 +- .github/workflows/ruby_event_store_coverage.yml | 6 +++--- .github/workflows/ruby_event_store_mutate.yml | 2 +- .github/workflows/ruby_event_store_test.yml | 2 +- support/ci/assets.yaml.erb | 5 ++++- support/ci/coverage.yaml.erb | 6 +++--- support/ci/template.yaml.erb | 2 +- 54 files changed, 94 insertions(+), 88 deletions(-) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index f64f03770c..d5106e17a7 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -1,11 +1,9 @@ name: aggregate_root_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - aggregate_root/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 111adbfa6e..ef037df4cd 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -1,9 +1,9 @@ name: aggregate_root_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index a5e98f9f71..76af23d04d 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -1,9 +1,9 @@ name: aggregate_root_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index bf9254d3c6..5b3298fa15 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -1,9 +1,9 @@ name: dres_client_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/dres_client/** diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index cb6daee4f4..4f39d94ad0 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -1,9 +1,9 @@ name: dres_rails_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/dres_client/** diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index db811bcc84..8928438bb6 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -1,11 +1,9 @@ name: minitest-ruby_event_store_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/minitest-ruby_event_store/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 6747342d4d..7c5449cd70 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -1,9 +1,9 @@ name: minitest-ruby_event_store_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/minitest-ruby_event_store/** diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index e064faec09..4db2de8e5a 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -1,9 +1,9 @@ name: minitest-ruby_event_store_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/minitest-ruby_event_store/** diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index d790e43ea0..2d6f32a3f8 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -1,11 +1,9 @@ name: rails_event_store_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - rails_event_store/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 70d829a4dd..b7cf4692d8 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -1,9 +1,9 @@ name: rails_event_store_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 6435055097..39e125b69c 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -1,9 +1,9 @@ name: rails_event_store_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index 48449c7897..f8f1735616 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-active_record_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - ruby_event_store-active_record/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 2649ad2d7c..1d5b04f38c 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-active_record_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index bfc570d1cd..026d8943f0 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-active_record_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 159c001e67..ee902d5b55 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -1,7 +1,10 @@ name: ruby_event_store-browser_assets on: - push: workflow_dispatch: + repository_dispatch: + types: + - script + push: jobs: assets: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 341a2ba5b0..3d0907fd29 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-browser_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - ruby_event_store-browser/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index 1059afc8a1..0f8959076c 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-browser_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 412d18ff6c..e7a5a53a03 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-browser_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index 5dbd4f6743..fb68aebda7 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-flipper_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-flipper/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index b2cfb88372..06508e5a11 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-flipper_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-flipper/** diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 4e1ebae294..1331830979 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-flipper_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-flipper/** diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index d6741ca7c9..b5045a2a8c 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-newrelic_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-newrelic/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 2a94fe751a..edf6c596fc 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-newrelic_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-newrelic/** diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 84fbecde79..1bb4c6b100 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-newrelic_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-newrelic/** diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index f30236ba35..09edfd9f4e 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-outbox_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-outbox/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index e47de15fb8..f99e1d9a86 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-outbox_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-outbox/** diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 5a2f119b9e..b50286f287 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-outbox_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-outbox/** diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 1623ed8ca1..011c32a895 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-profiler_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-profiler/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index b2d35aaf90..d82671eaeb 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-profiler_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-profiler/** diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 699baf5d57..1cbc08bc4b 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-profiler_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-profiler/** diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index bdf33a5b58..add43ef54d 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-protobuf_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-protobuf/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 75d0bd1647..eb9012e70c 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-protobuf_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-protobuf/** diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index 79ac616626..af89ea4a56 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-protobuf_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-protobuf/** diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index ec2ae1e370..c5665d40bb 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-rom_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-rom/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 800e9d585f..1f5e45cb07 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-rom_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-rom/** diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 3123d9ca7c..848e916bc9 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-rom_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-rom/** diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index 190d0d959a..786cd96375 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-rspec_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - ruby_event_store-rspec/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index 937dbbe3fc..f6b7bfae87 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-rspec_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 17f400bb59..f370043ef2 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-rspec_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index d55a7b47a3..26e48a3bd2 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-sequel_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-sequel/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 7d3ae51021..7fb66e3bb3 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-sequel_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-sequel/** diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index aa8769246c..188888d299 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-sequel_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-sequel/** diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 23e1952599..2bf0169cc2 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-sidekiq_scheduler_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index a9c6fdeaeb..877bb539b8 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-sidekiq_scheduler_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-sidekiq_scheduler/** diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index ff7e5a5a74..f828400ff0 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-sidekiq_scheduler_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-sidekiq_scheduler/** diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index f0827f7106..1f66768f5d 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store-transformations_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - contrib/ruby_event_store-transformations/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index ca034b1a9f..6b3b9fee0e 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store-transformations_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-transformations/** diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 8c13c66666..74865470d4 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store-transformations_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - contrib/ruby_event_store-transformations/** diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index 0ccd9c2194..e9c122bc76 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -1,11 +1,9 @@ name: ruby_event_store_coverage on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: - ruby_event_store/Gemfile.lock @@ -21,6 +19,8 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + schedule: + - cron: "0 17 * * *" jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 0548c6d8ca..1f257ec7ef 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -1,9 +1,9 @@ name: ruby_event_store_mutate on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 7844aa1a2d..888cfb1bdf 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -1,9 +1,9 @@ name: ruby_event_store_test on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: - aggregate_root/** diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb index c322adb8b7..24ef21a18b 100644 --- a/support/ci/assets.yaml.erb +++ b/support/ci/assets.yaml.erb @@ -1,6 +1,9 @@ name: <%= name %> on: - push: workflow_dispatch: + repository_dispatch: + types: + - script + push: jobs: <%= job %> \ No newline at end of file diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb index 457c448bdb..3cf31619e5 100644 --- a/support/ci/coverage.yaml.erb +++ b/support/ci/coverage.yaml.erb @@ -1,11 +1,9 @@ name: <%= name %> on: + workflow_dispatch: repository_dispatch: types: - script - schedule: - - cron: "0 17 * * *" - workflow_dispatch: push: paths: <%= paths %> @@ -13,5 +11,7 @@ on: types: [opened, reopened] paths: <%= paths %> + schedule: + - cron: "0 17 * * *" jobs: <%= job %> \ No newline at end of file diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index 3014254e0f..9b2382655e 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -1,9 +1,9 @@ name: <%= name %> on: + workflow_dispatch: repository_dispatch: types: - script - workflow_dispatch: push: paths: <%= paths %> From 69b44ceb1e05f4bea5bc4c89bd3584c84fbf934c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 18:15:31 +0200 Subject: [PATCH 12/17] Doh --- .github/workflows/dres_rails_test.yml | 4 ++-- .github/workflows/ruby_event_store-active_record_test.yml | 8 ++++---- .github/workflows/ruby_event_store-outbox_test.yml | 4 ++-- .github/workflows/ruby_event_store-rom_test.yml | 8 ++++---- .github/workflows/ruby_event_store-sequel_test.yml | 8 ++++---- support/ci/generate | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 4f39d94ad0..e05f51a839 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -32,7 +32,7 @@ jobs: DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" services: - - postgres_11: + postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store @@ -41,7 +41,7 @@ jobs: - 10011:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - postgres_15: + postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 026d8943f0..8abad3b256 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -40,7 +40,7 @@ jobs: DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" services: - - postgres_11: + postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store @@ -49,7 +49,7 @@ jobs: - 10011:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - postgres_15: + postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store @@ -58,7 +58,7 @@ jobs: - 10015:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_5: + mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store @@ -67,7 +67,7 @@ jobs: - 10005:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_8: + mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index b50286f287..0482022990 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -29,7 +29,7 @@ jobs: BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" services: - - mysql_5: + mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store @@ -38,7 +38,7 @@ jobs: - 10005:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_8: + mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 848e916bc9..489de6285c 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -30,7 +30,7 @@ jobs: DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" services: - - postgres_11: + postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store @@ -39,7 +39,7 @@ jobs: - 10011:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - postgres_15: + postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store @@ -48,7 +48,7 @@ jobs: - 10015:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_5: + mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store @@ -57,7 +57,7 @@ jobs: - 10005:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_8: + mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 188888d299..616a8de9e0 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -30,7 +30,7 @@ jobs: DATABASE_URL: "${{ matrix.database_url }}" DATA_TYPE: "${{ matrix.data_type }}" services: - - postgres_11: + postgres_11: image: postgres:11 env: POSTGRES_DB: rails_event_store @@ -39,7 +39,7 @@ jobs: - 10011:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - postgres_15: + postgres_15: image: postgres:15 env: POSTGRES_DB: rails_event_store @@ -48,7 +48,7 @@ jobs: - 10015:5432 options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_5: + mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store @@ -57,7 +57,7 @@ jobs: - 10005:3306 options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 - - mysql_8: + mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store diff --git a/support/ci/generate b/support/ci/generate index a9da9aab33..6f30bf32c1 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -750,7 +750,7 @@ class CI "runs-on" => "ubuntu-20.04", "timeout-minutes" => 120, "env" => env, - "services" => gem.fetch(:services), + "services" => gem.fetch(:services).reduce(&:merge), "strategy" => { "fail-fast" => false, "matrix" => { From d1e3df71a256712b6870a172cf42c41407de1ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 18:31:27 +0200 Subject: [PATCH 13/17] Pass CI triggers to template At this point templates don't matter anymore. --- .github/workflows/aggregate_root_coverage.yml | 27 +++--- .github/workflows/aggregate_root_mutate.yml | 40 ++++---- .github/workflows/aggregate_root_test.yml | 40 ++++---- .github/workflows/dres_client_test.yml | 28 +++--- .github/workflows/dres_rails_test.yml | 28 +++--- .../minitest-ruby_event_store_coverage.yml | 27 +++--- .../minitest-ruby_event_store_mutate.yml | 25 +++-- .../minitest-ruby_event_store_test.yml | 25 +++-- .../workflows/rails_event_store_coverage.yml | 27 +++--- .../workflows/rails_event_store_mutate.yml | 40 ++++---- .github/workflows/rails_event_store_test.yml | 40 ++++---- ...uby_event_store-active_record_coverage.yml | 27 +++--- .../ruby_event_store-active_record_mutate.yml | 40 ++++---- .../ruby_event_store-active_record_test.yml | 40 ++++---- .../ruby_event_store-browser_assets.yml | 2 +- .../ruby_event_store-browser_coverage.yml | 27 +++--- .../ruby_event_store-browser_mutate.yml | 40 ++++---- .../ruby_event_store-browser_test.yml | 40 ++++---- .../ruby_event_store-flipper_coverage.yml | 27 +++--- .../ruby_event_store-flipper_mutate.yml | 25 +++-- .../ruby_event_store-flipper_test.yml | 25 +++-- .../ruby_event_store-newrelic_coverage.yml | 27 +++--- .../ruby_event_store-newrelic_mutate.yml | 25 +++-- .../ruby_event_store-newrelic_test.yml | 25 +++-- .../ruby_event_store-outbox_coverage.yml | 27 +++--- .../ruby_event_store-outbox_mutate.yml | 25 +++-- .../ruby_event_store-outbox_test.yml | 25 +++-- .../ruby_event_store-profiler_coverage.yml | 27 +++--- .../ruby_event_store-profiler_mutate.yml | 25 +++-- .../ruby_event_store-profiler_test.yml | 25 +++-- .../ruby_event_store-protobuf_coverage.yml | 27 +++--- .../ruby_event_store-protobuf_mutate.yml | 25 +++-- .../ruby_event_store-protobuf_test.yml | 25 +++-- .../ruby_event_store-rom_coverage.yml | 27 +++--- .../workflows/ruby_event_store-rom_mutate.yml | 25 +++-- .../workflows/ruby_event_store-rom_test.yml | 25 +++-- .../ruby_event_store-rspec_coverage.yml | 27 +++--- .../ruby_event_store-rspec_mutate.yml | 40 ++++---- .../workflows/ruby_event_store-rspec_test.yml | 40 ++++---- .../ruby_event_store-sequel_coverage.yml | 27 +++--- .../ruby_event_store-sequel_mutate.yml | 25 +++-- .../ruby_event_store-sequel_test.yml | 25 +++-- ...event_store-sidekiq_scheduler_coverage.yml | 27 +++--- ...y_event_store-sidekiq_scheduler_mutate.yml | 25 +++-- ...uby_event_store-sidekiq_scheduler_test.yml | 25 +++-- ...y_event_store-transformations_coverage.yml | 27 +++--- ...uby_event_store-transformations_mutate.yml | 25 +++-- .../ruby_event_store-transformations_test.yml | 25 +++-- .../workflows/ruby_event_store_coverage.yml | 27 +++--- .github/workflows/ruby_event_store_mutate.yml | 40 ++++---- .github/workflows/ruby_event_store_test.yml | 40 ++++---- support/ci/assets.yaml.erb | 9 -- support/ci/coverage.yaml.erb | 17 ---- support/ci/generate | 96 ++++++++++++++----- support/ci/template.yaml.erb | 12 +-- 55 files changed, 703 insertions(+), 901 deletions(-) delete mode 100644 support/ci/assets.yaml.erb delete mode 100644 support/ci/coverage.yaml.erb diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index d5106e17a7..fc5a3b37a9 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/Gemfile.lock - - ".github/workflows/aggregate_root_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/Gemfile.lock + - ".github/workflows/aggregate_root_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/Gemfile.lock - - ".github/workflows/aggregate_root_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index ef037df4cd..b1fdfa9d00 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/aggregate_root_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/aggregate_root_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/aggregate_root_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 76af23d04d..3d96a0c65a 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/aggregate_root_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/aggregate_root_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/aggregate_root_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index 5b3298fa15..1aed4769ff 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -3,24 +3,20 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_client_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/dres_client/** + - contrib/dres_rails/** + - ".github/workflows/dres_client_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_client_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index e05f51a839..aaee1702c1 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -3,24 +3,20 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_rails_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/dres_client/** + - contrib/dres_rails/** + - ".github/workflows/dres_rails_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_rails_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 8928438bb6..3d5bf58337 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/minitest-ruby_event_store/Gemfile.lock - - ".github/workflows/minitest-ruby_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/minitest-ruby_event_store/Gemfile.lock + - ".github/workflows/minitest-ruby_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/minitest-ruby_event_store/Gemfile.lock - - ".github/workflows/minitest-ruby_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 7c5449cd70..87ea79a9c0 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/minitest-ruby_event_store/** + - ".github/workflows/minitest-ruby_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index 4db2de8e5a..fc4ffd8192 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/minitest-ruby_event_store/** + - ".github/workflows/minitest-ruby_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index 2d6f32a3f8..a9e667235a 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - rails_event_store/Gemfile.lock - - ".github/workflows/rails_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - rails_event_store/Gemfile.lock + - ".github/workflows/rails_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - rails_event_store/Gemfile.lock - - ".github/workflows/rails_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index b7cf4692d8..39dc489eef 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/rails_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/rails_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/rails_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 39e125b69c..063dff301d 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/rails_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/rails_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/rails_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index f8f1735616..c738610d9b 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - ruby_event_store-active_record/Gemfile.lock - - ".github/workflows/ruby_event_store-active_record_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - ruby_event_store-active_record/Gemfile.lock + - ".github/workflows/ruby_event_store-active_record_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - ruby_event_store-active_record/Gemfile.lock - - ".github/workflows/ruby_event_store-active_record_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 1d5b04f38c..af1c0ffc98 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-active_record_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-active_record_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-active_record_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 8abad3b256..5fc8222636 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-active_record_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-active_record_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-active_record_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index ee902d5b55..1e9151f133 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: jobs: assets: diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 3d0907fd29..d180f18bff 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - ruby_event_store-browser/Gemfile.lock - - ".github/workflows/ruby_event_store-browser_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - ruby_event_store-browser/Gemfile.lock + - ".github/workflows/ruby_event_store-browser_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - ruby_event_store-browser/Gemfile.lock - - ".github/workflows/ruby_event_store-browser_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index 0f8959076c..cd346b06de 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-browser_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-browser_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-browser_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index e7a5a53a03..5f0cb51749 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-browser_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-browser_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-browser_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index fb68aebda7..4e742ee732 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-flipper/Gemfile.lock - - ".github/workflows/ruby_event_store-flipper_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-flipper/Gemfile.lock + - ".github/workflows/ruby_event_store-flipper_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-flipper/Gemfile.lock - - ".github/workflows/ruby_event_store-flipper_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 06508e5a11..086ddf4b25 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-flipper/** + - ".github/workflows/ruby_event_store-flipper_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 1331830979..8f92b542a8 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-flipper/** + - ".github/workflows/ruby_event_store-flipper_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index b5045a2a8c..2a5939be52 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-newrelic/Gemfile.lock - - ".github/workflows/ruby_event_store-newrelic_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-newrelic/Gemfile.lock + - ".github/workflows/ruby_event_store-newrelic_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-newrelic/Gemfile.lock - - ".github/workflows/ruby_event_store-newrelic_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index edf6c596fc..81b21455cd 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-newrelic/** + - ".github/workflows/ruby_event_store-newrelic_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 1bb4c6b100..2d12b23ef7 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-newrelic/** + - ".github/workflows/ruby_event_store-newrelic_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 09edfd9f4e..eca7142fe8 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-outbox/Gemfile.lock - - ".github/workflows/ruby_event_store-outbox_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-outbox/Gemfile.lock + - ".github/workflows/ruby_event_store-outbox_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-outbox/Gemfile.lock - - ".github/workflows/ruby_event_store-outbox_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index f99e1d9a86..75d23c40b1 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-outbox/** + - ".github/workflows/ruby_event_store-outbox_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 0482022990..8b9e21d87c 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-outbox/** + - ".github/workflows/ruby_event_store-outbox_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 011c32a895..7939a6e036 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-profiler/Gemfile.lock - - ".github/workflows/ruby_event_store-profiler_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-profiler/Gemfile.lock + - ".github/workflows/ruby_event_store-profiler_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-profiler/Gemfile.lock - - ".github/workflows/ruby_event_store-profiler_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index d82671eaeb..21f9bf1c48 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-profiler/** + - ".github/workflows/ruby_event_store-profiler_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 1cbc08bc4b..d42f20b987 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-profiler/** + - ".github/workflows/ruby_event_store-profiler_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index add43ef54d..1fde738d72 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-protobuf/Gemfile.lock - - ".github/workflows/ruby_event_store-protobuf_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-protobuf/Gemfile.lock + - ".github/workflows/ruby_event_store-protobuf_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-protobuf/Gemfile.lock - - ".github/workflows/ruby_event_store-protobuf_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index eb9012e70c..5640390a17 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-protobuf/** + - ".github/workflows/ruby_event_store-protobuf_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index af89ea4a56..ec5c24b34d 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-protobuf/** + - ".github/workflows/ruby_event_store-protobuf_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index c5665d40bb..ddf437c7ad 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-rom/Gemfile.lock - - ".github/workflows/ruby_event_store-rom_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-rom/Gemfile.lock + - ".github/workflows/ruby_event_store-rom_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-rom/Gemfile.lock - - ".github/workflows/ruby_event_store-rom_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 1f5e45cb07..3b24c9d15f 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-rom/** + - ".github/workflows/ruby_event_store-rom_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 489de6285c..5e7321c7fd 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-rom/** + - ".github/workflows/ruby_event_store-rom_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index 786cd96375..4197ca04ed 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - ruby_event_store-rspec/Gemfile.lock - - ".github/workflows/ruby_event_store-rspec_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - ruby_event_store-rspec/Gemfile.lock + - ".github/workflows/ruby_event_store-rspec_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - ruby_event_store-rspec/Gemfile.lock - - ".github/workflows/ruby_event_store-rspec_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index f6b7bfae87..20d20cdb0c 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-rspec_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-rspec_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-rspec_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index f370043ef2..906f5d6df9 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-rspec_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-rspec_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store-rspec_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 26e48a3bd2..87a3e44f05 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sequel/Gemfile.lock - - ".github/workflows/ruby_event_store-sequel_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sequel/Gemfile.lock + - ".github/workflows/ruby_event_store-sequel_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sequel/Gemfile.lock - - ".github/workflows/ruby_event_store-sequel_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 7fb66e3bb3..26570e391d 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sequel/** + - ".github/workflows/ruby_event_store-sequel_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 616a8de9e0..3b78e95da1 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sequel/** + - ".github/workflows/ruby_event_store-sequel_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 2bf0169cc2..416049dc13 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock - - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock + - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock - - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 877bb539b8..5391cf8ef8 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sidekiq_scheduler/** - - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sidekiq_scheduler/** + - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sidekiq_scheduler/** - - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index f828400ff0..eb7893bc84 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-sidekiq_scheduler/** - - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-sidekiq_scheduler/** + - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-sidekiq_scheduler/** - - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index 1f66768f5d..60c9d08be2 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-transformations/Gemfile.lock - - ".github/workflows/ruby_event_store-transformations_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-transformations/Gemfile.lock + - ".github/workflows/ruby_event_store-transformations_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-transformations/Gemfile.lock - - ".github/workflows/ruby_event_store-transformations_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 6b3b9fee0e..bdce800c8c 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-transformations/** + - ".github/workflows/ruby_event_store-transformations_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 74865470d4..8515f1161c 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -3,22 +3,19 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - contrib/ruby_event_store-transformations/** + - ".github/workflows/ruby_event_store-transformations_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index e9c122bc76..ccdcda08bd 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -3,24 +3,21 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - ruby_event_store/Gemfile.lock - - ".github/workflows/ruby_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - ruby_event_store/Gemfile.lock + - ".github/workflows/ruby_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - ruby_event_store/Gemfile.lock - - ".github/workflows/ruby_event_store_coverage.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 schedule: - - cron: "0 17 * * *" + - cron: 0 17 * * * jobs: coverage: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 1f257ec7ef..7620699507 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 888cfb1bdf..28599abf43 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -3,32 +3,24 @@ on: workflow_dispatch: repository_dispatch: types: - - script + - script push: - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + paths: &1 + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" pull_request: - types: [opened, reopened] - paths: - - aggregate_root/** - - rails_event_store/** - - ruby_event_store/** - - ruby_event_store-active_record/** - - ruby_event_store-browser/** - - ruby_event_store-rspec/** - - ".github/workflows/ruby_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" + types: + - opened + - reopened + paths: *1 jobs: test: runs-on: ubuntu-20.04 diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb deleted file mode 100644 index 24ef21a18b..0000000000 --- a/support/ci/assets.yaml.erb +++ /dev/null @@ -1,9 +0,0 @@ -name: <%= name %> -on: - workflow_dispatch: - repository_dispatch: - types: - - script - push: -jobs: - <%= job %> \ No newline at end of file diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb deleted file mode 100644 index 3cf31619e5..0000000000 --- a/support/ci/coverage.yaml.erb +++ /dev/null @@ -1,17 +0,0 @@ -name: <%= name %> -on: - workflow_dispatch: - repository_dispatch: - types: - - script - push: - paths: - <%= paths %> - pull_request: - types: [opened, reopened] - paths: - <%= paths %> - schedule: - - cron: "0 17 * * *" -jobs: - <%= job %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index 6f30bf32c1..d413e80518 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -433,10 +433,33 @@ class CI end include Actions + module Triggers + def manual_trigger + { "workflow_dispatch" => nil } + end + + def api_trigger + { "repository_dispatch" => { "types" => ["script"] } } + end + + def push_trigger(paths = []) + return { "push" => nil } if paths.empty? + { "push" => { "paths" => paths } } + end + + def pr_trigger(paths) + { "pull_request" => { "types" => %w[opened reopened], "paths" => paths } } + end + + def scheduled_trigger + { "schedule" => [{ "cron" => "0 17 * * *" }] } + end + end + include Triggers + module Workflows def release_test( name, - template: "template.yaml.erb", matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("test")], services: [], @@ -446,17 +469,21 @@ class CI name: "#{name}_test", working_directory: name, matrix: matrix, - template: template, job_name: "test", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths) + ] } end def contrib_test( name, - template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("test")], services: [], @@ -466,17 +493,21 @@ class CI name: "#{name}_test", working_directory: "contrib/#{name}", matrix: matrix, - template: template, job_name: "test", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths) + ] } end def release_mutate( name, - template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [ checkout(depth: 0), @@ -491,17 +522,21 @@ class CI name: "#{name}_mutate", working_directory: name, matrix: matrix, - template: template, job_name: "mutate", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths) + ] } end def contrib_mutate( name, - template: "template.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [ checkout(depth: 0), @@ -516,17 +551,21 @@ class CI name: "#{name}_mutate", working_directory: "contrib/#{name}", matrix: matrix, - template: template, job_name: "mutate", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths) + ] } end def release_coverage( name, - template: "coverage.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], services: [], @@ -536,17 +575,22 @@ class CI name: "#{name}_coverage", working_directory: name, matrix: matrix, - template: template, job_name: "coverage", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths), + scheduled_trigger + ] } end def contrib_coverage( name, - template: "coverage.yaml.erb", matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], services: [], @@ -556,20 +600,25 @@ class CI name: "#{name}_coverage", working_directory: "contrib/#{name}", matrix: matrix, - template: template, job_name: "coverage", services: services, steps: steps, - paths: paths + paths: paths, + on: [ + manual_trigger, + api_trigger, + push_trigger(paths), + pr_trigger(paths), + scheduled_trigger + ] } end - def assets(name, template: "assets.yaml.erb") + def assets(name) { name: "#{name}_assets", working_directory: name, matrix: [], - template: template, job_name: "assets", services: [], steps: [ @@ -584,7 +633,8 @@ class CI set_short_sha_env, aws_s3_sync ], - paths: [] + paths: [], + on: [manual_trigger, api_trigger, push_trigger] } end end @@ -764,10 +814,10 @@ class CI File.write( File.join(workflows_root, filename), ERB.new( - File.read(File.join(template_root, gem.fetch(:template))) + File.read(File.join(template_root, "template.yaml.erb")) ).result_with_hash( name: name, - paths: as_formatted_yaml(gem.fetch(:paths), indent: 6), + on: as_formatted_yaml(gem.fetch(:on).reduce(&:merge), indent: 2), job: as_formatted_yaml({ gem.fetch(:job_name) => job }, indent: 2) ) ) diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index 9b2382655e..0a2536fa6e 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -1,15 +1,5 @@ name: <%= name %> on: - workflow_dispatch: - repository_dispatch: - types: - - script - push: - paths: - <%= paths %> - pull_request: - types: [opened, reopened] - paths: - <%= paths %> + <%= on %> jobs: <%= job %> \ No newline at end of file From bd72f759d4d125b7db83e2560bb818d8da3daf52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 18:44:57 +0200 Subject: [PATCH 14/17] Avoid YAML aliases in GitHub Actions workflows * not supported there * using YAML#safe_dump ensures an error when YAML generates such alias * in order to not produce aliases, same objects have to not be referenced more than once, thus the use of Object#dup --- .github/workflows/aggregate_root_coverage.yml | 9 +++++-- .github/workflows/aggregate_root_mutate.yml | 14 ++++++++-- .github/workflows/aggregate_root_test.yml | 14 ++++++++-- .github/workflows/dres_client_test.yml | 10 +++++-- .github/workflows/dres_rails_test.yml | 10 +++++-- .../minitest-ruby_event_store_coverage.yml | 9 +++++-- .../minitest-ruby_event_store_mutate.yml | 9 +++++-- .../minitest-ruby_event_store_test.yml | 9 +++++-- .../workflows/rails_event_store_coverage.yml | 9 +++++-- .../workflows/rails_event_store_mutate.yml | 14 ++++++++-- .github/workflows/rails_event_store_test.yml | 14 ++++++++-- ...uby_event_store-active_record_coverage.yml | 9 +++++-- .../ruby_event_store-active_record_mutate.yml | 14 ++++++++-- .../ruby_event_store-active_record_test.yml | 14 ++++++++-- .../ruby_event_store-browser_coverage.yml | 9 +++++-- .../ruby_event_store-browser_mutate.yml | 14 ++++++++-- .../ruby_event_store-browser_test.yml | 14 ++++++++-- .../ruby_event_store-flipper_coverage.yml | 9 +++++-- .../ruby_event_store-flipper_mutate.yml | 9 +++++-- .../ruby_event_store-flipper_test.yml | 9 +++++-- .../ruby_event_store-newrelic_coverage.yml | 9 +++++-- .../ruby_event_store-newrelic_mutate.yml | 9 +++++-- .../ruby_event_store-newrelic_test.yml | 9 +++++-- .../ruby_event_store-outbox_coverage.yml | 9 +++++-- .../ruby_event_store-outbox_mutate.yml | 9 +++++-- .../ruby_event_store-outbox_test.yml | 9 +++++-- .../ruby_event_store-profiler_coverage.yml | 9 +++++-- .../ruby_event_store-profiler_mutate.yml | 9 +++++-- .../ruby_event_store-profiler_test.yml | 9 +++++-- .../ruby_event_store-protobuf_coverage.yml | 9 +++++-- .../ruby_event_store-protobuf_mutate.yml | 9 +++++-- .../ruby_event_store-protobuf_test.yml | 9 +++++-- .../ruby_event_store-rom_coverage.yml | 9 +++++-- .../workflows/ruby_event_store-rom_mutate.yml | 9 +++++-- .../workflows/ruby_event_store-rom_test.yml | 9 +++++-- .../ruby_event_store-rspec_coverage.yml | 9 +++++-- .../ruby_event_store-rspec_mutate.yml | 14 ++++++++-- .../workflows/ruby_event_store-rspec_test.yml | 14 ++++++++-- .../ruby_event_store-sequel_coverage.yml | 9 +++++-- .../ruby_event_store-sequel_mutate.yml | 9 +++++-- .../ruby_event_store-sequel_test.yml | 9 +++++-- ...event_store-sidekiq_scheduler_coverage.yml | 9 +++++-- ...y_event_store-sidekiq_scheduler_mutate.yml | 9 +++++-- ...uby_event_store-sidekiq_scheduler_test.yml | 9 +++++-- ...y_event_store-transformations_coverage.yml | 9 +++++-- ...uby_event_store-transformations_mutate.yml | 9 +++++-- .../ruby_event_store-transformations_test.yml | 9 +++++-- .../workflows/ruby_event_store_coverage.yml | 9 +++++-- .github/workflows/ruby_event_store_mutate.yml | 14 ++++++++-- .github/workflows/ruby_event_store_test.yml | 14 ++++++++-- support/ci/generate | 26 +++++++++---------- 51 files changed, 425 insertions(+), 113 deletions(-) diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index fc5a3b37a9..1f132fe981 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/Gemfile.lock - ".github/workflows/aggregate_root_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/Gemfile.lock + - ".github/workflows/aggregate_root_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index b1fdfa9d00..d5176049a6 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/aggregate_root_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 3d96a0c65a..335258b1ad 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/aggregate_root_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index 1aed4769ff..3b56320867 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/dres_client/** - contrib/dres_rails/** - ".github/workflows/dres_client_test.yml" @@ -16,7 +16,13 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/dres_client/** + - contrib/dres_rails/** + - ".github/workflows/dres_client_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index aaee1702c1..4823463f7a 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/dres_client/** - contrib/dres_rails/** - ".github/workflows/dres_rails_test.yml" @@ -16,7 +16,13 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/dres_client/** + - contrib/dres_rails/** + - ".github/workflows/dres_rails_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 3d5bf58337..41b9f9fe83 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/minitest-ruby_event_store/Gemfile.lock - ".github/workflows/minitest-ruby_event_store_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/minitest-ruby_event_store/Gemfile.lock + - ".github/workflows/minitest-ruby_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index 87ea79a9c0..4ab38102a0 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/minitest-ruby_event_store/** + - ".github/workflows/minitest-ruby_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index fc4ffd8192..64a3636d2e 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/minitest-ruby_event_store/** - ".github/workflows/minitest-ruby_event_store_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/minitest-ruby_event_store/** + - ".github/workflows/minitest-ruby_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index a9e667235a..4d55b107b2 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - rails_event_store/Gemfile.lock - ".github/workflows/rails_event_store_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - rails_event_store/Gemfile.lock + - ".github/workflows/rails_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 39dc489eef..0f9cec234e 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/rails_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index 063dff301d..e9e8d2d465 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/rails_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index c738610d9b..8adc1eb93d 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - ruby_event_store-active_record/Gemfile.lock - ".github/workflows/ruby_event_store-active_record_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - ruby_event_store-active_record/Gemfile.lock + - ".github/workflows/ruby_event_store-active_record_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index af1c0ffc98..2dee854256 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-active_record_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 5fc8222636..5e9e258f0d 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-active_record_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index d180f18bff..f0e53fda38 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - ruby_event_store-browser/Gemfile.lock - ".github/workflows/ruby_event_store-browser_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - ruby_event_store-browser/Gemfile.lock + - ".github/workflows/ruby_event_store-browser_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index cd346b06de..a19cf97156 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-browser_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 5f0cb51749..223cb54d21 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-browser_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index 4e742ee732..f519fbc0cb 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-flipper/Gemfile.lock - ".github/workflows/ruby_event_store-flipper_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-flipper/Gemfile.lock + - ".github/workflows/ruby_event_store-flipper_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 086ddf4b25..edb5fe1568 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-flipper/** + - ".github/workflows/ruby_event_store-flipper_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 8f92b542a8..34eb73e294 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-flipper/** - ".github/workflows/ruby_event_store-flipper_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-flipper/** + - ".github/workflows/ruby_event_store-flipper_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index 2a5939be52..40d26a1c38 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-newrelic/Gemfile.lock - ".github/workflows/ruby_event_store-newrelic_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-newrelic/Gemfile.lock + - ".github/workflows/ruby_event_store-newrelic_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 81b21455cd..19cf9744ee 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-newrelic/** + - ".github/workflows/ruby_event_store-newrelic_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 2d12b23ef7..99e94a2fa3 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-newrelic/** - ".github/workflows/ruby_event_store-newrelic_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-newrelic/** + - ".github/workflows/ruby_event_store-newrelic_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index eca7142fe8..0d68a2ed6f 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-outbox/Gemfile.lock - ".github/workflows/ruby_event_store-outbox_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-outbox/Gemfile.lock + - ".github/workflows/ruby_event_store-outbox_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 75d23c40b1..eef4d3fb5e 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-outbox/** + - ".github/workflows/ruby_event_store-outbox_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 8b9e21d87c..fe732b742f 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-outbox/** - ".github/workflows/ruby_event_store-outbox_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-outbox/** + - ".github/workflows/ruby_event_store-outbox_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 7939a6e036..fd5e793850 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-profiler/Gemfile.lock - ".github/workflows/ruby_event_store-profiler_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-profiler/Gemfile.lock + - ".github/workflows/ruby_event_store-profiler_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 21f9bf1c48..5eb12ef9a5 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-profiler/** + - ".github/workflows/ruby_event_store-profiler_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index d42f20b987..4f1c41d1d8 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-profiler/** - ".github/workflows/ruby_event_store-profiler_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-profiler/** + - ".github/workflows/ruby_event_store-profiler_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index 1fde738d72..e18178d467 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-protobuf/Gemfile.lock - ".github/workflows/ruby_event_store-protobuf_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-protobuf/Gemfile.lock + - ".github/workflows/ruby_event_store-protobuf_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 5640390a17..f859e7cfe8 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-protobuf/** + - ".github/workflows/ruby_event_store-protobuf_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index ec5c24b34d..6592969948 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-protobuf/** - ".github/workflows/ruby_event_store-protobuf_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-protobuf/** + - ".github/workflows/ruby_event_store-protobuf_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index ddf437c7ad..4b95664032 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-rom/Gemfile.lock - ".github/workflows/ruby_event_store-rom_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-rom/Gemfile.lock + - ".github/workflows/ruby_event_store-rom_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 3b24c9d15f..413baa8238 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-rom/** + - ".github/workflows/ruby_event_store-rom_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index 5e7321c7fd..a328352d82 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-rom/** - ".github/workflows/ruby_event_store-rom_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-rom/** + - ".github/workflows/ruby_event_store-rom_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index 4197ca04ed..f4e4d5edda 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - ruby_event_store-rspec/Gemfile.lock - ".github/workflows/ruby_event_store-rspec_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - ruby_event_store-rspec/Gemfile.lock + - ".github/workflows/ruby_event_store-rspec_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index 20d20cdb0c..832dc2840e 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-rspec_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 906f5d6df9..7b3c735126 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store-rspec_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 87a3e44f05..ebfe589886 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sequel/Gemfile.lock - ".github/workflows/ruby_event_store-sequel_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sequel/Gemfile.lock + - ".github/workflows/ruby_event_store-sequel_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index 26570e391d..1fd7701a55 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sequel/** + - ".github/workflows/ruby_event_store-sequel_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 3b78e95da1..11b01126be 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sequel/** - ".github/workflows/ruby_event_store-sequel_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sequel/** + - ".github/workflows/ruby_event_store-sequel_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 416049dc13..9d163bad32 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sidekiq_scheduler/Gemfile.lock + - ".github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 5391cf8ef8..e0c3162c1c 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sidekiq_scheduler/** + - ".github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index eb7893bc84..e47a739723 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-sidekiq_scheduler/** - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-sidekiq_scheduler/** + - ".github/workflows/ruby_event_store-sidekiq_scheduler_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index 60c9d08be2..0449096e8e 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-transformations/Gemfile.lock - ".github/workflows/ruby_event_store-transformations_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-transformations/Gemfile.lock + - ".github/workflows/ruby_event_store-transformations_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index bdce800c8c..6e6d5d01dc 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_mutate.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-transformations/** + - ".github/workflows/ruby_event_store-transformations_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 8515f1161c..d4ba2e3290 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - contrib/ruby_event_store-transformations/** - ".github/workflows/ruby_event_store-transformations_test.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - contrib/ruby_event_store-transformations/** + - ".github/workflows/ruby_event_store-transformations_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index ccdcda08bd..d683fb43bb 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - ruby_event_store/Gemfile.lock - ".github/workflows/ruby_event_store_coverage.yml" - support/** @@ -15,7 +15,12 @@ on: types: - opened - reopened - paths: *1 + paths: + - ruby_event_store/Gemfile.lock + - ".github/workflows/ruby_event_store_coverage.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" schedule: - cron: 0 17 * * * jobs: diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index 7620699507..ca422aeb4e 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store_mutate.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: mutate: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 28599abf43..e122adc1c5 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -5,7 +5,7 @@ on: types: - script push: - paths: &1 + paths: - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -20,7 +20,17 @@ on: types: - opened - reopened - paths: *1 + paths: + - aggregate_root/** + - rails_event_store/** + - ruby_event_store/** + - ruby_event_store-active_record/** + - ruby_event_store-browser/** + - ruby_event_store-rspec/** + - ".github/workflows/ruby_event_store_test.yml" + - support/** + - "!support/bundler/**" + - "!support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/support/ci/generate b/support/ci/generate index d413e80518..0ec13696c9 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -476,8 +476,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths) + push_trigger(paths.dup), + pr_trigger(paths.dup) ] } end @@ -500,8 +500,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths) + push_trigger(paths.dup), + pr_trigger(paths.dup) ] } end @@ -529,8 +529,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths) + push_trigger(paths.dup), + pr_trigger(paths.dup) ] } end @@ -558,8 +558,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths) + push_trigger(paths.dup), + pr_trigger(paths.dup) ] } end @@ -582,8 +582,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths), + push_trigger(paths.dup), + pr_trigger(paths.dup), scheduled_trigger ] } @@ -607,8 +607,8 @@ class CI on: [ manual_trigger, api_trigger, - push_trigger(paths), - pr_trigger(paths), + push_trigger(paths.dup), + pr_trigger(paths.dup), scheduled_trigger ] } @@ -837,7 +837,7 @@ class CI end def as_formatted_yaml(content, indent:) - Psych.dump(content, line_length: 120).lines.drop(1).join(" " * indent).strip + Psych.safe_dump(content, line_length: 120).lines.drop(1).join(" " * indent).strip end def initialize(workflows_root, template_root) From 6cb32917a1c56d366cc2faa055b444e16b410a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 19:25:31 +0200 Subject: [PATCH 15/17] Wrong keyword --- .github/workflows/dres_rails_test.yml | 6 ++---- .../ruby_event_store-active_record_test.yml | 12 ++++-------- .../workflows/ruby_event_store-browser_assets.yml | 3 +-- .github/workflows/ruby_event_store-outbox_test.yml | 6 ++---- .github/workflows/ruby_event_store-rom_test.yml | 12 ++++-------- .github/workflows/ruby_event_store-sequel_test.yml | 12 ++++-------- support/ci/generate | 7 ++++++- 7 files changed, 23 insertions(+), 35 deletions(-) diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index 4823463f7a..975d136c96 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -41,8 +41,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 postgres_15: image: postgres:15 env: @@ -50,8 +49,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 5e9e258f0d..19e9071236 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -49,8 +49,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 postgres_15: image: postgres:15 env: @@ -58,8 +57,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_5: image: mysql:5 env: @@ -67,8 +65,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_8: image: mysql:8 env: @@ -76,8 +73,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 1e9151f133..5200f2d183 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -42,5 +42,4 @@ jobs: aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" aws-region: eu-central-1 - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ - env.SHORT_SHA }} \ No newline at end of file + - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }} \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index fe732b742f..15a7337618 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -38,8 +38,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_8: image: mysql:8 env: @@ -47,8 +46,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index a328352d82..69d0ea9a92 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -39,8 +39,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 postgres_15: image: postgres:15 env: @@ -48,8 +47,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_5: image: mysql:5 env: @@ -57,8 +55,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_8: image: mysql:8 env: @@ -66,8 +63,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index 11b01126be..de6b7e67a6 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -39,8 +39,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10011:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 postgres_15: image: postgres:15 env: @@ -48,8 +47,7 @@ jobs: POSTGRES_PASSWORD: secret ports: - 10015:5432 - options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s - --health-retries 5 + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_5: image: mysql:5 env: @@ -57,8 +55,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 mysql_8: image: mysql:8 env: @@ -66,8 +63,7 @@ jobs: MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout - 5s --health-retries 5 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: diff --git a/support/ci/generate b/support/ci/generate index 0ec13696c9..bc4347e5f4 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -837,7 +837,12 @@ class CI end def as_formatted_yaml(content, indent:) - Psych.safe_dump(content, line_length: 120).lines.drop(1).join(" " * indent).strip + Psych + .safe_dump(content, line_width: 120) + .lines + .drop(1) + .join(" " * indent) + .strip end def initialize(workflows_root, template_root) From 0cb6563ba7f7f0ce038c0dec1fd5a857ec1897e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 19:26:42 +0200 Subject: [PATCH 16/17] No ERB templates of YAML needed at this point Reminded myself that "on" is Boolean in YAML and Psych intentionally dumps it as "'on':". https://yaml.org/type/bool.html https://github.com/ruby/psych/blob/587c50f91421ae51059753a25357a4c42ab685f5/lib/psych/visitors/yaml_tree.rb#L281-L283 https://github.com/ruby/psych/blob/587c50f91421ae51059753a25357a4c42ab685f5/lib/psych/scalar_scanner.rb#L50-L51 Thus intentionally generating boolean, as in GA docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on --- support/ci/generate | 20 +++++++++++--------- support/ci/template.yaml.erb | 5 ----- 2 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 support/ci/template.yaml.erb diff --git a/support/ci/generate b/support/ci/generate index bc4347e5f4..17a56d6261 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -3,7 +3,6 @@ # frozen_string_literal: true require "bundler/inline" -require "erb" require "psych" gemfile do @@ -813,12 +812,14 @@ class CI File.write( File.join(workflows_root, filename), - ERB.new( - File.read(File.join(template_root, "template.yaml.erb")) - ).result_with_hash( - name: name, - on: as_formatted_yaml(gem.fetch(:on).reduce(&:merge), indent: 2), - job: as_formatted_yaml({ gem.fetch(:job_name) => job }, indent: 2) + as_formatted_yaml( + { + "name" => name, + "on" => gem.fetch(:on).reduce(&:merge), + "jobs" => { + gem.fetch(:job_name) => job + } + } ) ) @@ -836,13 +837,14 @@ class CI end end - def as_formatted_yaml(content, indent:) + def as_formatted_yaml(content) Psych .safe_dump(content, line_width: 120) .lines .drop(1) - .join(" " * indent) + .join .strip + .gsub(/'on':\n/, "on:\n") end def initialize(workflows_root, template_root) diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb deleted file mode 100644 index 0a2536fa6e..0000000000 --- a/support/ci/template.yaml.erb +++ /dev/null @@ -1,5 +0,0 @@ -name: <%= name %> -on: - <%= on %> -jobs: - <%= job %> \ No newline at end of file From 1191827444b3cc4c152e0902c5b205a3ac8428fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sun, 10 Sep 2023 20:57:58 +0200 Subject: [PATCH 17/17] Mildly reduce Primitive Obsession --- support/ci/generate | 588 ++++++++++++++++---------------------------- 1 file changed, 214 insertions(+), 374 deletions(-) diff --git a/support/ci/generate b/support/ci/generate index 17a56d6261..78fff787ea 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -12,20 +12,11 @@ end class CI RUBY_VERSIONS = [ - MRI_RUBY = [ - RUBY_3_2 = "ruby-3.2", - RUBY_3_1 = "ruby-3.1", - RUBY_3_0 = "ruby-3.0" - ], + MRI_RUBY = [RUBY_3_2 = "ruby-3.2", RUBY_3_1 = "ruby-3.1", RUBY_3_0 = "ruby-3.0"], TRUFFLE_RUBY = "truffleruby" ].flatten - DATA_TYPES = [ - DATA_TEXT = "text", - DATA_BINARY = "binary", - DATA_JSON = "json", - DATA_JSONB = "jsonb" - ] + DATA_TYPES = [DATA_TEXT = "text", DATA_BINARY = "binary", DATA_JSON = "json", DATA_JSONB = "jsonb"] DATA_TYPES_IN_AR = [DATA_BINARY, DATA_TYPES.drop(2)].flatten DATA_TYPES_IN_SEQUEL = [DATA_TEXT, DATA_TYPES.drop(2)].flatten @@ -34,10 +25,8 @@ class CI SQLITE = "sqlite:db.sqlite3", SQLITE3 = "sqlite3:db.sqlite3", POSTGRES = [ - POSTGRES_15 = - "postgres://postgres:secret@localhost:10015/rails_event_store?pool=5", - POSTGRES_11 = - "postgres://postgres:secret@localhost:10011/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" ], MYSQL = [ MYSQL_8 = "mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5", @@ -47,20 +36,11 @@ class CI GEMFILE = "Gemfile" - RAILS_GEMFILES = [ - GEMFILE_RAILS_6_1 = "Gemfile.rails_6_1", - GEMFILE_RAILS_6_0 = "Gemfile.rails_6_0" - ].flatten + RAILS_GEMFILES = [GEMFILE_RAILS_6_1 = "Gemfile.rails_6_1", GEMFILE_RAILS_6_0 = "Gemfile.rails_6_0"].flatten - AS_GEMFILES = [ - GEMFILE_AS_6_1 = "Gemfile.activesupport_6_1", - GEMFILE_AS_6_0 = "Gemfile.activesupport_6_0" - ] + AS_GEMFILES = [GEMFILE_AS_6_1 = "Gemfile.activesupport_6_1", GEMFILE_AS_6_0 = "Gemfile.activesupport_6_0"] - SIDEKIQ_GEMFILES = [ - GEMFILE_SIDEKIQ_6_5 = "Gemfile.sidekiq_6_5", - GEMFILE_SIDEKIQ_5_2 = "Gemfile.sidekiq_5_2" - ] + SIDEKIQ_GEMFILES = [GEMFILE_SIDEKIQ_6_5 = "Gemfile.sidekiq_6_5", GEMFILE_SIDEKIQ_5_2 = "Gemfile.sidekiq_5_2"] def workflows [ @@ -75,29 +55,14 @@ class CI release_coverage("ruby_event_store-rspec"), release_test( "ruby_event_store-browser", - steps: [ - checkout, - verify_lockfile, - setup_ruby, - setup_node, - cache_elm, - make("install-npm test") - ], - matrix: - generate( - ruby_version(RUBY_VERSIONS), - bundle_gemfile(GEMFILE, "Gemfile.rack_2_0") - ) + steps: [checkout, verify_lockfile, setup_ruby, setup_node, cache_elm, make("install-npm test")], + matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE, "Gemfile.rack_2_0")) ), release_mutate("ruby_event_store-browser"), release_coverage("ruby_event_store-browser"), release_test( "rails_event_store", - matrix: - generate( - ruby_version(RUBY_VERSIONS), - bundle_gemfile(GEMFILE, RAILS_GEMFILES) - ) + matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE, RAILS_GEMFILES)) ), release_mutate("rails_event_store"), release_coverage("rails_event_store"), @@ -109,10 +74,7 @@ class CI ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE), join( - generate( - database_url(SQLITE3), - data_type(DATA_TYPES_IN_AR.take(1)) - ), + generate(database_url(SQLITE3), data_type(DATA_TYPES_IN_AR.take(1))), generate(database_url(POSTGRES), data_type(DATA_TYPES_IN_AR)), generate(database_url(MYSQL), data_type(DATA_TYPES_IN_AR.take(2))) ) @@ -122,8 +84,7 @@ class CI release_coverage("ruby_event_store-active_record"), contrib_test( "ruby_event_store-flipper", - matrix: - generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE, AS_GEMFILES)) + matrix: generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE, AS_GEMFILES)) ), contrib_mutate("ruby_event_store-flipper"), contrib_coverage("ruby_event_store-flipper"), @@ -141,14 +102,7 @@ class CI database_url(SQLITE3, MYSQL_5, MYSQL_8) ) ), - steps: [ - checkout, - setup_nix, - setup_cachix, - verify_lockfile, - setup_ruby, - make_nix_shell("test") - ] + steps: [checkout, setup_nix, setup_cachix, verify_lockfile, setup_ruby, make_nix_shell("test")] ), contrib_mutate( "ruby_event_store-outbox", @@ -163,14 +117,7 @@ class CI ), contrib_coverage( "ruby_event_store-outbox", - steps: [ - checkout, - setup_nix, - setup_cachix, - verify_lockfile, - setup_ruby, - make_nix_shell("mutate") - ] + steps: [checkout, setup_nix, setup_cachix, verify_lockfile, setup_ruby, make_nix_shell("mutate")] ), contrib_test("ruby_event_store-profiler"), contrib_mutate("ruby_event_store-profiler"), @@ -244,21 +191,8 @@ class CI contrib_coverage("ruby_event_store-sequel"), contrib_test( "ruby_event_store-sidekiq_scheduler", - matrix: - join( - generate( - ruby_version(MRI_RUBY), - bundle_gemfile(GEMFILE, SIDEKIQ_GEMFILES) - ) - ), - steps: [ - checkout, - setup_nix, - setup_cachix, - verify_lockfile, - setup_ruby, - make_nix_shell("test") - ] + matrix: join(generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE, SIDEKIQ_GEMFILES))), + steps: [checkout, setup_nix, setup_cachix, verify_lockfile, setup_ruby, make_nix_shell("test")] ), contrib_mutate( "ruby_event_store-sidekiq_scheduler", @@ -273,14 +207,7 @@ class CI ), contrib_coverage( "ruby_event_store-sidekiq_scheduler", - steps: [ - checkout, - setup_nix, - setup_cachix, - verify_lockfile, - setup_ruby, - make_nix_shell("mutate") - ] + steps: [checkout, setup_nix, setup_cachix, verify_lockfile, setup_ruby, make_nix_shell("mutate")] ), contrib_test("ruby_event_store-transformations"), contrib_mutate("ruby_event_store-transformations"), @@ -288,7 +215,7 @@ class CI contrib_test("minitest-ruby_event_store"), contrib_mutate("minitest-ruby_event_store"), contrib_coverage("minitest-ruby_event_store"), - contrib_test("dres_client", paths: dres_paths("dres_client_test")), + contrib_test("dres_client", triggers: dres_triggers("dres_client_test")), contrib_test( "dres_rails", services: [postgres_11, postgres_15], @@ -301,7 +228,7 @@ class CI data_type(DATA_TYPES_IN_AR) ) ), - paths: dres_paths("dres_rails_test") + triggers: dres_triggers("dres_rails_test") ), assets("ruby_event_store-browser") ] @@ -313,10 +240,7 @@ class CI end def verify_lockfile - { - "run" => "test -e ${{ env.BUNDLE_GEMFILE }}.lock", - "working-directory" => "${{ env.WORKING_DIRECTORY }}" - } + { "run" => "test -e ${{ env.BUNDLE_GEMFILE }}.lock", "working-directory" => "${{ env.WORKING_DIRECTORY }}" } end def setup_ruby @@ -336,8 +260,7 @@ class CI "with" => { "node-version" => 18, "cache" => "npm", - "cache-dependency-path" => - "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" + "cache-dependency-path" => "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" } } end @@ -347,19 +270,13 @@ class CI "uses" => "actions/cache@v3", "with" => { "path" => "~/.elm", - "key" => - "elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }}" + "key" => "elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }}" } } end def setup_nix - { - "uses" => "cachix/install-nix-action@v20", - "with" => { - "nix_path" => "nixpkgs=channel:nixos-unstable" - } - } + { "uses" => "cachix/install-nix-action@v20", "with" => { "nix_path" => "nixpkgs=channel:nixos-unstable" } } end def setup_cachix @@ -373,26 +290,20 @@ class CI end def make_nix_shell(target, imports: ["redis.nix"]) - { - "run" => <<~SHELL, - nix-shell --run "make #{target}" -E" - with import { }; - mkShell { - inputsFrom = [ - #{imports.map { |i| "(import ../../support/nix/#{i})" }.join("\n")} - ]; - } - " - SHELL - "working-directory" => "${{ env.WORKING_DIRECTORY }}" - } + { "run" => <<~SHELL, "working-directory" => "${{ env.WORKING_DIRECTORY }}" } + nix-shell --run "make #{target}" -E" + with import { }; + mkShell { + inputsFrom = [ + #{imports.map { |i| "(import ../../support/nix/#{i})" }.join("\n")} + ]; + } + " + SHELL end def make(target) - { - "run" => "make #{target}", - "working-directory" => "${{ env.WORKING_DIRECTORY }}" - } + { "run" => "make #{target}", "working-directory" => "${{ env.WORKING_DIRECTORY }}" } end def upload_artifact(name) @@ -417,17 +328,11 @@ class CI end def set_short_sha_env - { - "run" => - "echo \"SHORT_SHA=$(git rev-parse --short=12 HEAD)\" >> $GITHUB_ENV" - } + { "run" => "echo \"SHORT_SHA=$(git rev-parse --short=12 HEAD)\" >> $GITHUB_ENV" } end def aws_s3_sync - { - "run" => - "aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }}" - } + { "run" => "aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }}" } end end include Actions @@ -453,193 +358,27 @@ class CI def scheduled_trigger { "schedule" => [{ "cron" => "0 17 * * *" }] } end - end - include Triggers - - module Workflows - def release_test( - name, - matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE)), - steps: [checkout, verify_lockfile, setup_ruby, make("test")], - services: [], - paths: release_paths("#{name}_test") - ) - { - name: "#{name}_test", - working_directory: name, - matrix: matrix, - job_name: "test", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup) - ] - } - end - def contrib_test( - name, - matrix: generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE)), - steps: [checkout, verify_lockfile, setup_ruby, make("test")], - services: [], - paths: contrib_paths("#{name}_test", "contrib/#{name}") - ) - { - name: "#{name}_test", - working_directory: "contrib/#{name}", - matrix: matrix, - job_name: "test", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup) - ] - } + def release_triggers(workflow_name) + paths = release_paths(workflow_name) + [manual_trigger, api_trigger, push_trigger(paths.dup), pr_trigger(paths.dup)] end - def release_mutate( - name, - matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), - steps: [ - checkout(depth: 0), - verify_lockfile, - setup_ruby, - make("mutate-changes") - ], - services: [], - paths: release_paths("#{name}_mutate") - ) - { - name: "#{name}_mutate", - working_directory: name, - matrix: matrix, - job_name: "mutate", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup) - ] - } - end - - def contrib_mutate( - name, - matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), - steps: [ - checkout(depth: 0), - verify_lockfile, - setup_ruby, - make("mutate-changes") - ], - services: [], - paths: contrib_paths("#{name}_mutate", "contrib/#{name}") - ) - { - name: "#{name}_mutate", - working_directory: "contrib/#{name}", - matrix: matrix, - job_name: "mutate", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup) - ] - } - end - - def release_coverage( - name, - matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), - steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], - services: [], - paths: coverage_paths("#{name}_coverage", name) - ) - { - name: "#{name}_coverage", - working_directory: name, - matrix: matrix, - job_name: "coverage", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup), - scheduled_trigger - ] - } + def contrib_triggers(workflow_name, working_directory) + paths = contrib_paths(workflow_name, working_directory) + [manual_trigger, api_trigger, push_trigger(paths.dup), pr_trigger(paths.dup)] end - def contrib_coverage( - name, - matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), - steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], - services: [], - paths: coverage_paths("#{name}_coverage", "contrib/#{name}") - ) - { - name: "#{name}_coverage", - working_directory: "contrib/#{name}", - matrix: matrix, - job_name: "coverage", - services: services, - steps: steps, - paths: paths, - on: [ - manual_trigger, - api_trigger, - push_trigger(paths.dup), - pr_trigger(paths.dup), - scheduled_trigger - ] - } + def coverage_triggers(workflow_name, working_directory) + paths = coverage_paths(workflow_name, working_directory) + [manual_trigger, api_trigger, push_trigger(paths.dup), pr_trigger(paths.dup), scheduled_trigger] end - def assets(name) - { - name: "#{name}_assets", - working_directory: name, - matrix: [], - job_name: "assets", - services: [], - steps: [ - checkout, - setup_node, - cache_elm, - make("install-npm"), - make("build-npm"), - upload_artifact("ruby_event_store_browser.js"), - upload_artifact("ruby_event_store_browser.css"), - configure_aws_credentials, - set_short_sha_env, - aws_s3_sync - ], - paths: [], - on: [manual_trigger, api_trigger, push_trigger] - } + def dres_triggers(workflow_name) + paths = dres_paths(workflow_name) + [manual_trigger, api_trigger, push_trigger(paths.dup), pr_trigger(paths.dup)] end - end - include Workflows - module Paths def release_paths(workflow_name) [ %w[ @@ -656,19 +395,13 @@ class CI end def contrib_paths(workflow_name, working_directory) - [ - own_paths(working_directory), - workflow_paths(workflow_name), - support_paths - ].reduce(&:concat).uniq + [own_paths(working_directory), workflow_paths(workflow_name), support_paths].reduce(&:concat).uniq end def coverage_paths(workflow_name, working_directory) - [ - [working_directory].map { |wd| "#{wd}/Gemfile.lock" }, - workflow_paths(workflow_name), - support_paths - ].reduce(&:concat).uniq + [[working_directory].map { |wd| "#{wd}/Gemfile.lock" }, workflow_paths(workflow_name), support_paths].reduce( + &:concat + ).uniq end def dres_paths(workflow_name) @@ -691,7 +424,7 @@ class CI %w[support/** !support/bundler/** !support/ci/**] end end - include Paths + include Triggers module Services def postgres_11 @@ -703,8 +436,7 @@ class CI "POSTGRES_PASSWORD" => "secret" }, "ports" => ["10011:5432"], - "options" => - "--health-cmd \"pg_isready\" --health-interval 10s --health-timeout 5s --health-retries 5" + "options" => "--health-cmd \"pg_isready\" --health-interval 10s --health-timeout 5s --health-retries 5" } } end @@ -718,8 +450,7 @@ class CI "POSTGRES_PASSWORD" => "secret" }, "ports" => ["10015:5432"], - "options" => - "--health-cmd \"pg_isready\" --health-interval 10s --health-timeout 5s --health-retries 5" + "options" => "--health-cmd \"pg_isready\" --health-interval 10s --health-timeout 5s --health-retries 5" } } end @@ -733,8 +464,7 @@ class CI "MYSQL_ROOT_PASSWORD" => "secret" }, "ports" => ["10008:3306"], - "options" => - "--health-cmd \"mysqladmin ping\" --health-interval 10s --health-timeout 5s --health-retries 5" + "options" => "--health-cmd \"mysqladmin ping\" --health-interval 10s --health-timeout 5s --health-retries 5" } } end @@ -748,8 +478,7 @@ class CI "MYSQL_ROOT_PASSWORD" => "secret" }, "ports" => ["10005:3306"], - "options" => - "--health-cmd \"mysqladmin ping\" --health-interval 10s --health-timeout 5s --health-retries 5" + "options" => "--health-cmd \"mysqladmin ping\" --health-interval 10s --health-timeout 5s --health-retries 5" } } end @@ -787,64 +516,178 @@ class CI end include Matrix - def as_github_actions - workflows.each do |gem| - name = gem.fetch(:name) - filename = "#{name}.yml" - env = { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( - matrix_env_vars(gem.fetch(:matrix)) + module Workflows + class Workflow + include Triggers + include Matrix + include Actions + + def initialize( + gem, + job_name: "test", + name: "#{gem}_#{job_name}", + working_directory: gem, + matrix: generate(ruby_version(RUBY_VERSIONS), bundle_gemfile(GEMFILE)), + steps: [checkout, verify_lockfile, setup_ruby, make("test")], + services: [], + triggers: release_triggers(name) ) - job = + @gem = gem + @job_name = job_name + @name = name + @working_directory = working_directory + @matrix = matrix + @steps = steps + @services = services + @triggers = triggers + end + + def to_h + { "name" => name, "on" => triggers.reduce(&:merge), "jobs" => { job_name => job } } + end + + attr_reader :gem, :job_name, :name, :working_directory, :matrix, :steps, :services, :triggers + + private + + def job { "runs-on" => "ubuntu-20.04", "timeout-minutes" => 120, - "env" => env, - "services" => gem.fetch(:services).reduce(&:merge), + "env" => { "WORKING_DIRECTORY" => working_directory }.merge(env(matrix)), + "services" => services.reduce(&:merge), "strategy" => { "fail-fast" => false, "matrix" => { - "include" => gem.fetch(:matrix) + "include" => matrix } }, - "steps" => gem.fetch(:steps) - }.reject { |k, v| k == "services" && gem.fetch(:services).empty? } - .reject { |k, v| k == "strategy" && gem.fetch(:matrix).empty? } - - File.write( - File.join(workflows_root, filename), - as_formatted_yaml( - { - "name" => name, - "on" => gem.fetch(:on).reduce(&:merge), - "jobs" => { - gem.fetch(:job_name) => job - } - } - ) + "steps" => steps + }.reject { |k, _| k == "services" && services.empty? }.reject { |k, _| k == "strategy" && matrix.empty? } + end + + def env(matrix) + matrix + .take(1) + .reduce({}) do |acc, matrix_item| + matrix_item.reduce(acc) { |acc, (key, _)| acc.merge(key.upcase => "${{ matrix.#{key} }}") } + end + end + end + + def release_test(name, **) + Workflow.new(name, **) + end + + def contrib_test( + name, + working_directory: "contrib/#{name}", + matrix: generate(ruby_version(MRI_RUBY), bundle_gemfile(GEMFILE)), + ** + ) + Workflow.new( + name, + working_directory: working_directory, + matrix: matrix, + triggers: contrib_triggers("#{name}_test", working_directory), + ** ) + end - puts "writing #{filename}" + def release_mutate( + name, + matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), + steps: [checkout(depth: 0), verify_lockfile, setup_ruby, make("mutate-changes")], + ** + ) + Workflow.new(name, job_name: "mutate", matrix: matrix, steps: steps, **) + end + + def contrib_mutate( + name, + working_directory: "contrib/#{name}", + matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), + steps: [checkout(depth: 0), verify_lockfile, setup_ruby, make("mutate-changes")], + ** + ) + Workflow.new( + name, + job_name: "mutate", + working_directory: working_directory, + matrix: matrix, + steps: steps, + triggers: contrib_triggers("#{name}_mutate", working_directory), + ** + ) + end + + def release_coverage( + name, + matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), + steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], + ** + ) + Workflow.new( + name, + job_name: "coverage", + matrix: matrix, + steps: steps, + triggers: coverage_triggers("#{name}_coverage", name), + ** + ) + end + + def contrib_coverage( + name, + working_directory: "contrib/#{name}", + matrix: generate(ruby_version(MRI_RUBY.take(1)), bundle_gemfile(GEMFILE)), + steps: [checkout, verify_lockfile, setup_ruby, make("mutate")], + ** + ) + Workflow.new( + name, + job_name: "coverage", + working_directory: working_directory, + matrix: matrix, + steps: steps, + triggers: coverage_triggers("#{name}_coverage", working_directory), + ** + ) + end + + def assets(name) + Workflow.new( + name, + job_name: "assets", + matrix: [], + steps: [ + checkout, + setup_node, + cache_elm, + make("install-npm"), + make("build-npm"), + upload_artifact("ruby_event_store_browser.js"), + upload_artifact("ruby_event_store_browser.css"), + configure_aws_credentials, + set_short_sha_env, + aws_s3_sync + ], + triggers: [manual_trigger, api_trigger, push_trigger] + ) end end + include Workflows - def matrix_env_vars(matrix) - matrix - .take(1) - .reduce({}) do |acc, matrix_item| - matrix_item.reduce(acc) do |acc, (key, _)| - acc.merge(key.upcase => "${{ matrix.#{key} }}") - end - end + def as_github_actions + workflows.each do |workflow| + filename = "#{workflow.name}.yml" + File.write(File.join(workflows_root, filename), as_yaml(workflow.to_h)) + puts "writing #{filename}" + end end - def as_formatted_yaml(content) - Psych - .safe_dump(content, line_width: 120) - .lines - .drop(1) - .join - .strip - .gsub(/'on':\n/, "on:\n") + def as_yaml(content) + Psych.safe_dump(content, line_width: 120).lines.drop(1).join.strip.gsub(/'on':\n/, "on:\n") end def initialize(workflows_root, template_root) @@ -855,7 +698,4 @@ class CI attr_reader :workflows_root, :template_root end -CI.new( - File.join(__dir__, "../../.github/workflows/"), - __dir__ -).as_github_actions +CI.new(File.join(__dir__, "../../.github/workflows/"), __dir__).as_github_actions