diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index d5106e17a7..acf9b05a9a 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -1,26 +1,23 @@ name: aggregate_root_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 ef037df4cd..23557b7530 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -1,24 +1,11 @@ name: aggregate_root_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..3839547729 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -1,24 +1,11 @@ name: aggregate_root_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..ff6fb4cc57 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -1,26 +1,22 @@ name: dres_client_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_client_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..5320390a27 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -1,26 +1,22 @@ name: dres_rails_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/dres_client/** - - contrib/dres_rails/** - - ".github/workflows/dres_rails_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..5c888bd2cf 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -1,26 +1,23 @@ name: minitest-ruby_event_store_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 7c5449cd70..b39504f2f5 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -1,24 +1,21 @@ name: minitest-ruby_event_store_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..addf1f0ced 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -1,24 +1,21 @@ name: minitest-ruby_event_store_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/minitest-ruby_event_store/** - - ".github/workflows/minitest-ruby_event_store_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..49f4e6cc13 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -1,26 +1,23 @@ name: rails_event_store_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 b7cf4692d8..171552f22a 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -1,24 +1,11 @@ name: rails_event_store_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..264dc294f1 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -1,24 +1,11 @@ name: rails_event_store_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..19342425f5 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-active_record_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 1d5b04f38c..0fb738c442 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -1,24 +1,11 @@ name: ruby_event_store-active_record_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..2964c1673a 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -1,24 +1,11 @@ name: ruby_event_store-active_record_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..7c2fc7fec4 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -1,10 +1,10 @@ name: ruby_event_store-browser_assets on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: + - 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 3d0907fd29..f173b6a124 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-browser_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 0f8959076c..ef96903b00 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -1,24 +1,11 @@ name: ruby_event_store-browser_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..a80afd006b 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -1,24 +1,11 @@ name: ruby_event_store-browser_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..d19690784a 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-flipper_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 06508e5a11..ff1285036f 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-flipper_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..37bb0986df 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-flipper_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-flipper/** - - ".github/workflows/ruby_event_store-flipper_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..153315e3f8 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-newrelic_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 edf6c596fc..8c89957e22 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-newrelic_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..337c04dbfd 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-newrelic_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-newrelic/** - - ".github/workflows/ruby_event_store-newrelic_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..4ebebbf1c0 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-outbox_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 f99e1d9a86..72f67b1b2f 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-outbox_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..e55d1a67eb 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-outbox_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-outbox/** - - ".github/workflows/ruby_event_store-outbox_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..e1c8566702 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-profiler_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 d82671eaeb..5262e91c48 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-profiler_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..bbfe932326 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-profiler_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-profiler/** - - ".github/workflows/ruby_event_store-profiler_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..cbfab3f3ca 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-protobuf_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 eb9012e70c..b1a8beb91f 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-protobuf_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..42d4673831 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-protobuf_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-protobuf/** - - ".github/workflows/ruby_event_store-protobuf_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..03a2ea0318 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-rom_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 1f5e45cb07..0b8b3b83b5 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-rom_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..f8267451dc 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-rom_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-rom/** - - ".github/workflows/ruby_event_store-rom_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..dd6200750f 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-rspec_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 f6b7bfae87..5d1569a459 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -1,24 +1,11 @@ name: ruby_event_store-rspec_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..6d57ea3a5e 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -1,24 +1,11 @@ name: ruby_event_store-rspec_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..343c8a1bd7 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-sequel_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 7fb66e3bb3..c21208bfae 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-sequel_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..bc4a42e851 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-sequel_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-sequel/** - - ".github/workflows/ruby_event_store-sequel_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..64c3adaa85 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-sidekiq_scheduler_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 877bb539b8..71000f7a1b 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-sidekiq_scheduler_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - 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: + - push: + 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: *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..55b43ab1de 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-sidekiq_scheduler_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - 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: + - push: + 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: *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..2913c7f171 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store-transformations_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 6b3b9fee0e..0895b26326 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -1,24 +1,21 @@ name: ruby_event_store-transformations_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_mutate.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..42c61f650a 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -1,24 +1,21 @@ name: ruby_event_store-transformations_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: - - contrib/ruby_event_store-transformations/** - - ".github/workflows/ruby_event_store-transformations_test.yml" - - support/** - - "!support/bundler/**" - - "!support/ci/**" - pull_request: - types: [opened, reopened] - paths: + - push: + 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: *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..908e51de38 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -1,26 +1,23 @@ name: ruby_event_store_coverage on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - script - push: - paths: + - push: + 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/**" - schedule: - - cron: "0 17 * * *" + - pull_request: + types: + - opened + - reopened + paths: *1 + - 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 1f257ec7ef..eb0311a3c4 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -1,24 +1,11 @@ name: ruby_event_store_mutate on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..c4179f0b99 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -1,24 +1,11 @@ name: ruby_event_store_test on: - workflow_dispatch: - repository_dispatch: - types: + - workflow_dispatch: + - repository_dispatch: + types: - 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/**" - pull_request: - types: [opened, reopened] - paths: + - push: + paths: &1 - aggregate_root/** - rails_event_store/** - ruby_event_store/** @@ -29,6 +16,11 @@ on: - support/** - "!support/bundler/**" - "!support/ci/**" + - pull_request: + 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..4a4b20ddc7 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), 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