Skip to content

Commit

Permalink
Avoid YAML aliases in GitHub Actions workflows
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mostlyobvious committed Sep 10, 2023
1 parent d1e3df7 commit bd72f75
Show file tree
Hide file tree
Showing 51 changed files with 425 additions and 113 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/aggregate_root_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/Gemfile.lock
- ".github/workflows/aggregate_root_coverage.yml"
- support/**
Expand All @@ -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:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/aggregate_root_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/aggregate_root_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/dres_client_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- contrib/dres_client/**
- contrib/dres_rails/**
- ".github/workflows/dres_client_test.yml"
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/dres_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- contrib/dres_client/**
- contrib/dres_rails/**
- ".github/workflows/dres_rails_test.yml"
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/minitest-ruby_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/minitest-ruby_event_store_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/minitest-ruby_event_store_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/rails_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- rails_event_store/Gemfile.lock
- ".github/workflows/rails_event_store_coverage.yml"
- support/**
Expand All @@ -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:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/rails_event_store_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/rails_event_store_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/ruby_event_store-active_record_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ruby_event_store-active_record_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ruby_event_store-active_record_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- script
push:
paths: &1
paths:
- aggregate_root/**
- rails_event_store/**
- ruby_event_store/**
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/ruby_event_store-browser_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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:
Expand Down
Loading

0 comments on commit bd72f75

Please sign in to comment.