Skip to content

Commit

Permalink
Split test and mutate jobs into separate workflows
Browse files Browse the repository at this point in the history
Consistent with coverage worfklow and should be easier to generate
with such differences minimized.
  • Loading branch information
mostlyobvious committed Sep 8, 2023
1 parent 85fb647 commit 7ee1870
Show file tree
Hide file tree
Showing 17 changed files with 393 additions and 198 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/aggregate_root_mutate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: aggregate_root_mutate
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/aggregate_root_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/aggregate_root_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
23 changes: 1 addition & 22 deletions .github/workflows/aggregate_root_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,4 @@ jobs:
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make test
working-directory: ${{ env.WORKING_DIRECTORY }}

mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}
52 changes: 52 additions & 0 deletions .github/workflows/rails_event_store_mutate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: rails_event_store_mutate
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/rails_event_store_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/rails_event_store_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: rails_event_store
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
23 changes: 1 addition & 22 deletions .github/workflows/rails_event_store_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,4 @@ jobs:
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make test
working-directory: ${{ env.WORKING_DIRECTORY }}

mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: rails_event_store
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}
52 changes: 52 additions & 0 deletions .github/workflows/ruby_event_store-active_record_mutate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ruby_event_store-active_record_mutate
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-active_record_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-active_record_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-active_record
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
23 changes: 1 addition & 22 deletions .github/workflows/ruby_event_store-active_record_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,4 @@ jobs:
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make test
working-directory: ${{ env.WORKING_DIRECTORY }}

mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-active_record
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}
52 changes: 52 additions & 0 deletions .github/workflows/ruby_event_store-browser_mutate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ruby_event_store-browser_mutate
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-browser_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-browser_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-browser
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
23 changes: 1 addition & 22 deletions .github/workflows/ruby_event_store-browser_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,4 @@ jobs:
path: ~/.elm
key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }}
- run: make install-npm test
working-directory: ${{ env.WORKING_DIRECTORY }}

mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-browser
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}
52 changes: 52 additions & 0 deletions .github/workflows/ruby_event_store-rspec_mutate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ruby_event_store-rspec_mutate
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-rspec_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "aggregate_root/**"
- "rails_event_store/**"
- "ruby_event_store/**"
- "ruby_event_store-active_record/**"
- "ruby_event_store-browser/**"
- "ruby_event_store-rspec/**"
- ".github/workflows/ruby_event_store-rspec_mutate.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-rspec
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}
Loading

0 comments on commit 7ee1870

Please sign in to comment.