Skip to content

Commit

Permalink
Pass the whole job to the CI workflow template
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Sep 10, 2023
1 parent b206359 commit 652a242
Show file tree
Hide file tree
Showing 55 changed files with 756 additions and 827 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/aggregate_root_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/aggregate_root_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,22 @@ jobs:
WORKING_DIRECTORY: aggregate_root
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- 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: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/aggregate_root_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
WORKING_DIRECTORY: aggregate_root
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
Expand All @@ -51,15 +50,15 @@ jobs:
- ruby_version: truffleruby
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/dres_client_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
WORKING_DIRECTORY: contrib/dres_client
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
Expand All @@ -41,15 +40,15 @@ jobs:
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
36 changes: 17 additions & 19 deletions .github/workflows/dres_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,25 @@ jobs:
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
DATABASE_URL: "${{ matrix.database_url }}"
DATA_TYPE: "${{ matrix.data_type }}"

services:
postgres_11:
- postgres_11:
image: postgres:11
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10011:5432
options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries
5
postgres_15:
options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s
--health-retries 5
- postgres_15:
image: postgres:15
env:
POSTGRES_DB: rails_event_store
POSTGRES_PASSWORD: secret
ports:
- 10015:5432
options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries
5

options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -81,15 +79,15 @@ jobs:
database_url: postgres://postgres:secret@localhost:10015/rails_event_store?pool=5
data_type: jsonb
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
22 changes: 11 additions & 11 deletions .github/workflows/minitest-ruby_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/minitest-ruby_event_store_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,22 @@ jobs:
WORKING_DIRECTORY: contrib/minitest-ruby_event_store
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- 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: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/minitest-ruby_event_store_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
WORKING_DIRECTORY: contrib/minitest-ruby_event_store
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
Expand All @@ -39,15 +38,15 @@ jobs:
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make test
working-directory: "${{ env.WORKING_DIRECTORY }}"
22 changes: 11 additions & 11 deletions .github/workflows/rails_event_store_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- uses: actions/checkout@v3
with:
fetch-depth: 1
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate
working-directory: "${{ env.WORKING_DIRECTORY }}"
23 changes: 11 additions & 12 deletions .github/workflows/rails_event_store_mutate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,22 @@ jobs:
WORKING_DIRECTORY: rails_event_store
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"

strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
- 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: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.RUBY_VERSION }}"
bundler-cache: true
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
- run: make mutate-changes
working-directory: "${{ env.WORKING_DIRECTORY }}"
Loading

0 comments on commit 652a242

Please sign in to comment.