Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI refactor #1690

Merged
merged 17 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 30 additions & 28 deletions .github/workflows/aggregate_root_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
name: aggregate_root_coverage
on:
workflow_dispatch:
repository_dispatch:
types:
- script
schedule:
- cron: "0 17 * * *"
workflow_dispatch:
- script
push:
paths:
- "aggregate_root/Gemfile.lock"
- ".github/workflows/aggregate_root_coverage.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
- aggregate_root/Gemfile.lock
- ".github/workflows/aggregate_root_coverage.yml"
- support/**
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
types:
- opened
- reopened
paths:
- "aggregate_root/Gemfile.lock"
- ".github/workflows/aggregate_root_coverage.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
- aggregate_root/Gemfile.lock
- ".github/workflows/aggregate_root_coverage.yml"
- support/**
- "!support/bundler/**"
- "!support/ci/**"
schedule:
- cron: 0 17 * * *
jobs:
coverage:
runs-on: ubuntu-20.04
Expand All @@ -33,18 +35,18 @@ jobs:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- 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 }}"
75 changes: 39 additions & 36 deletions .github/workflows/aggregate_root_mutate.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
name: aggregate_root_mutate
on:
workflow_dispatch:
repository_dispatch:
types:
- script
workflow_dispatch:
- 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/**"
- 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]
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/**"
- 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
timeout-minutes: 120
env:
WORKING_DIRECTORY: aggregate_root
RUBY_VERSION: "${{ matrix.ruby_version }}"
Expand All @@ -40,18 +43,18 @@ jobs:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- 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 }}"
87 changes: 45 additions & 42 deletions .github/workflows/aggregate_root_test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
name: aggregate_root_test
on:
workflow_dispatch:
repository_dispatch:
types:
- script
workflow_dispatch:
- 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/**"
- 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]
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_test.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
- 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
timeout-minutes: 120
env:
WORKING_DIRECTORY: aggregate_root
RUBY_VERSION: "${{ matrix.ruby_version }}"
Expand All @@ -40,24 +43,24 @@ jobs:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
- ruby_version: truffleruby
bundle_gemfile: Gemfile
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
- 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 }}"
67 changes: 35 additions & 32 deletions .github/workflows/dres_client_test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
name: dres_client_test
on:
workflow_dispatch:
repository_dispatch:
types:
- script
workflow_dispatch:
- script
push:
paths:
- "contrib/dres_client/**"
- "contrib/dres_rails/**"
- ".github/workflows/dres_client_test.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
- contrib/dres_client/**
- contrib/dres_rails/**
- ".github/workflows/dres_client_test.yml"
- support/**
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
types:
- opened
- reopened
paths:
- "contrib/dres_client/**"
- "contrib/dres_rails/**"
- ".github/workflows/dres_client_test.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
- contrib/dres_client/**
- contrib/dres_rails/**
- ".github/workflows/dres_client_test.yml"
- support/**
- "!support/bundler/**"
- "!support/ci/**"
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
WORKING_DIRECTORY: contrib/dres_client
RUBY_VERSION: "${{ matrix.ruby_version }}"
Expand All @@ -32,22 +35,22 @@ jobs:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- 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 }}"
Loading