From d4f2f0f423dd61bb332ace3dc88fd5dcd0565012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Wed, 6 Sep 2023 13:49:38 +0200 Subject: [PATCH] Ignore unrelated changes in support/ when triggering CI * Gemfile includes already trigger changes via Gemfile.lock * changes to CI generation script should only trigger CI when they result in a different workflow file --- .github/workflows/aggregate_root.yml | 4 ++++ .github/workflows/minitest-ruby_event_store.yml | 6 ++++++ .github/workflows/rails_event_store.yml | 4 ++++ .github/workflows/ruby_event_store-active_record.yml | 4 ++++ .github/workflows/ruby_event_store-browser.yml | 4 ++++ .github/workflows/ruby_event_store-flipper.yml | 6 ++++++ .github/workflows/ruby_event_store-newrelic.yml | 6 ++++++ .github/workflows/ruby_event_store-profiler.yml | 6 ++++++ .github/workflows/ruby_event_store-rspec.yml | 4 ++++ .github/workflows/ruby_event_store-transformations.yml | 6 ++++++ .github/workflows/ruby_event_store.yml | 4 ++++ support/ci/contrib.yaml.erb | 6 ++++++ support/ci/db.yaml.erb | 4 ++++ support/ci/elm.yaml.erb | 4 ++++ support/ci/ruby.yaml.erb | 4 ++++ 15 files changed, 72 insertions(+) diff --git a/.github/workflows/aggregate_root.yml b/.github/workflows/aggregate_root.yml index f0426afe8a..de42d58dd0 100644 --- a/.github/workflows/aggregate_root.yml +++ b/.github/workflows/aggregate_root.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/minitest-ruby_event_store.yml b/.github/workflows/minitest-ruby_event_store.yml index 91aceea5df..5b02eff446 100644 --- a/.github/workflows/minitest-ruby_event_store.yml +++ b/.github/workflows/minitest-ruby_event_store.yml @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/minitest-ruby_event_store/**" - ".github/workflows/minitest-ruby_event_store.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/minitest-ruby_event_store/**" - ".github/workflows/minitest-ruby_event_store.yml" diff --git a/.github/workflows/rails_event_store.yml b/.github/workflows/rails_event_store.yml index a0bdd8a9b6..ebcaebd507 100644 --- a/.github/workflows/rails_event_store.yml +++ b/.github/workflows/rails_event_store.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-active_record.yml b/.github/workflows/ruby_event_store-active_record.yml index 0275436155..44da7c5e06 100644 --- a/.github/workflows/ruby_event_store-active_record.yml +++ b/.github/workflows/ruby_event_store-active_record.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-browser.yml b/.github/workflows/ruby_event_store-browser.yml index 480fa6c73b..f735309d85 100644 --- a/.github/workflows/ruby_event_store-browser.yml +++ b/.github/workflows/ruby_event_store-browser.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-flipper.yml b/.github/workflows/ruby_event_store-flipper.yml index 8e67d90e33..e20ff3d325 100644 --- a/.github/workflows/ruby_event_store-flipper.yml +++ b/.github/workflows/ruby_event_store-flipper.yml @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-flipper/**" - ".github/workflows/ruby_event_store-flipper.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-flipper/**" - ".github/workflows/ruby_event_store-flipper.yml" diff --git a/.github/workflows/ruby_event_store-newrelic.yml b/.github/workflows/ruby_event_store-newrelic.yml index f83d539d76..9f3e9c4ae9 100644 --- a/.github/workflows/ruby_event_store-newrelic.yml +++ b/.github/workflows/ruby_event_store-newrelic.yml @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-newrelic/**" - ".github/workflows/ruby_event_store-newrelic.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-newrelic/**" - ".github/workflows/ruby_event_store-newrelic.yml" diff --git a/.github/workflows/ruby_event_store-profiler.yml b/.github/workflows/ruby_event_store-profiler.yml index e179034a6f..2d8ba77389 100644 --- a/.github/workflows/ruby_event_store-profiler.yml +++ b/.github/workflows/ruby_event_store-profiler.yml @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-profiler/**" - ".github/workflows/ruby_event_store-profiler.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-profiler/**" - ".github/workflows/ruby_event_store-profiler.yml" diff --git a/.github/workflows/ruby_event_store-rspec.yml b/.github/workflows/ruby_event_store-rspec.yml index def1f65ee9..8f08151fd3 100644 --- a/.github/workflows/ruby_event_store-rspec.yml +++ b/.github/workflows/ruby_event_store-rspec.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/.github/workflows/ruby_event_store-transformations.yml b/.github/workflows/ruby_event_store-transformations.yml index 13f1e9c22d..17b438f1c6 100644 --- a/.github/workflows/ruby_event_store-transformations.yml +++ b/.github/workflows/ruby_event_store-transformations.yml @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-transformations/**" - ".github/workflows/ruby_event_store-transformations.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "contrib/ruby_event_store-transformations/**" - ".github/workflows/ruby_event_store-transformations.yml" diff --git a/.github/workflows/ruby_event_store.yml b/.github/workflows/ruby_event_store.yml index e4e32ece05..b4ae0cb77d 100644 --- a/.github/workflows/ruby_event_store.yml +++ b/.github/workflows/ruby_event_store.yml @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/support/ci/contrib.yaml.erb b/support/ci/contrib.yaml.erb index a255127555..e552e51144 100644 --- a/support/ci/contrib.yaml.erb +++ b/support/ci/contrib.yaml.erb @@ -5,12 +5,18 @@ on: - script workflow_dispatch: push: + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "<%= working_directory %>/**" - ".github/workflows/<%= name %>.yml" - "support/**" pull_request: types: [opened, reopened] + paths-ignore: + - "support/bundler/**" + - "support/ci/**" paths: - "<%= working_directory %>/**" - ".github/workflows/<%= name %>.yml" diff --git a/support/ci/db.yaml.erb b/support/ci/db.yaml.erb index 53f4929a6f..71db9a0327 100644 --- a/support/ci/db.yaml.erb +++ b/support/ci/db.yaml.erb @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/support/ci/elm.yaml.erb b/support/ci/elm.yaml.erb index 979ade180e..c27cde82c2 100644 --- a/support/ci/elm.yaml.erb +++ b/support/ci/elm.yaml.erb @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04 diff --git a/support/ci/ruby.yaml.erb b/support/ci/ruby.yaml.erb index ba5c5ecb77..10991e42ce 100644 --- a/support/ci/ruby.yaml.erb +++ b/support/ci/ruby.yaml.erb @@ -8,11 +8,15 @@ on: paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" pull_request: types: [opened, reopened] paths-ignore: - "railseventstore.org/**" - "contrib/**" + - "support/bundler/**" + - "support/ci/**" jobs: test: runs-on: ubuntu-20.04