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] 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)