diff --git a/.github/workflows/aggregate_root_coverage.yml b/.github/workflows/aggregate_root_coverage.yml index ad527e3aa4..f64f03770c 100644 --- a/.github/workflows/aggregate_root_coverage.yml +++ b/.github/workflows/aggregate_root_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/aggregate_root_mutate.yml b/.github/workflows/aggregate_root_mutate.yml index 02a08b5f90..111adbfa6e 100644 --- a/.github/workflows/aggregate_root_mutate.yml +++ b/.github/workflows/aggregate_root_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/aggregate_root_test.yml b/.github/workflows/aggregate_root_test.yml index 623512ba65..a5e98f9f71 100644 --- a/.github/workflows/aggregate_root_test.yml +++ b/.github/workflows/aggregate_root_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: aggregate_root RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/dres_client_test.yml b/.github/workflows/dres_client_test.yml index e967d6605b..bf9254d3c6 100644 --- a/.github/workflows/dres_client_test.yml +++ b/.github/workflows/dres_client_test.yml @@ -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: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/dres_rails_test.yml b/.github/workflows/dres_rails_test.yml index bac01e8d52..cb6daee4f4 100644 --- a/.github/workflows/dres_rails_test.yml +++ b/.github/workflows/dres_rails_test.yml @@ -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: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_coverage.yml b/.github/workflows/minitest-ruby_event_store_coverage.yml index 816d3dc46c..db811bcc84 100644 --- a/.github/workflows/minitest-ruby_event_store_coverage.yml +++ b/.github/workflows/minitest-ruby_event_store_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_mutate.yml b/.github/workflows/minitest-ruby_event_store_mutate.yml index fa34f2e36f..6747342d4d 100644 --- a/.github/workflows/minitest-ruby_event_store_mutate.yml +++ b/.github/workflows/minitest-ruby_event_store_mutate.yml @@ -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: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/minitest-ruby_event_store_test.yml b/.github/workflows/minitest-ruby_event_store_test.yml index 93fe5b7479..e064faec09 100644 --- a/.github/workflows/minitest-ruby_event_store_test.yml +++ b/.github/workflows/minitest-ruby_event_store_test.yml @@ -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: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_coverage.yml b/.github/workflows/rails_event_store_coverage.yml index 246b5e4a2c..d790e43ea0 100644 --- a/.github/workflows/rails_event_store_coverage.yml +++ b/.github/workflows/rails_event_store_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_mutate.yml b/.github/workflows/rails_event_store_mutate.yml index 4a3e95efdc..70d829a4dd 100644 --- a/.github/workflows/rails_event_store_mutate.yml +++ b/.github/workflows/rails_event_store_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/rails_event_store_test.yml b/.github/workflows/rails_event_store_test.yml index bb1a5fd5d8..6435055097 100644 --- a/.github/workflows/rails_event_store_test.yml +++ b/.github/workflows/rails_event_store_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: rails_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -55,15 +54,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.rails_6_0 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_coverage.yml b/.github/workflows/ruby_event_store-active_record_coverage.yml index 0f514b6d76..48449c7897 100644 --- a/.github/workflows/ruby_event_store-active_record_coverage.yml +++ b/.github/workflows/ruby_event_store-active_record_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_mutate.yml b/.github/workflows/ruby_event_store-active_record_mutate.yml index 3bdee5ece4..2649ad2d7c 100644 --- a/.github/workflows/ruby_event_store-active_record_mutate.yml +++ b/.github/workflows/ruby_event_store-active_record_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-active_record RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 2b596317da..bfc570d1cd 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -39,45 +39,43 @@ 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 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -127,15 +125,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 data_type: json 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_assets.yml b/.github/workflows/ruby_event_store-browser_assets.yml index 93db273c9e..a0d8f4a2f3 100644 --- a/.github/workflows/ruby_event_store-browser_assets.yml +++ b/.github/workflows/ruby_event_store-browser_assets.yml @@ -4,41 +4,44 @@ on: workflow_dispatch: jobs: assets: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: + runs-on: ubuntu-20.04 + timeout-minutes: 120 + env: WORKING_DIRECTORY: ruby_event_store-browser - + strategy: + fail-fast: false + matrix: + include: [] steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" - - uses: actions/cache@v3 - with: - path: "~/.elm" - key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - - run: make install-npm - working-directory: "${{ env.WORKING_DIRECTORY }}" - - run: make build-npm - working-directory: "${{ env.WORKING_DIRECTORY }}" - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.js - path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js" - - uses: actions/upload-artifact@v3 - with: - name: ruby_event_store_browser.css - path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css" - - uses: aws-actions/configure-aws-credentials@v1-node16 - with: - aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}" - aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - aws-region: eu-central-1 - - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ - env.SHORT_SHA }} \ No newline at end of file + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" + - uses: actions/cache@v3 + with: + path: "~/.elm" + key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} + - run: make install-npm + working-directory: "${{ env.WORKING_DIRECTORY }}" + - run: make build-npm + working-directory: "${{ env.WORKING_DIRECTORY }}" + - uses: actions/upload-artifact@v3 + with: + name: ruby_event_store_browser.js + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js" + - uses: actions/upload-artifact@v3 + with: + name: ruby_event_store_browser.css + path: "${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css" + - uses: aws-actions/configure-aws-credentials@v1-node16 + with: + aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}" + aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" + aws-region: eu-central-1 + - run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV + - run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ + env.SHORT_SHA }} \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_coverage.yml b/.github/workflows/ruby_event_store-browser_coverage.yml index 2905aa927b..341a2ba5b0 100644 --- a/.github/workflows/ruby_event_store-browser_coverage.yml +++ b/.github/workflows/ruby_event_store-browser_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_mutate.yml b/.github/workflows/ruby_event_store-browser_mutate.yml index df32eb5930..1059afc8a1 100644 --- a/.github/workflows/ruby_event_store-browser_mutate.yml +++ b/.github/workflows/ruby_event_store-browser_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-browser_test.yml b/.github/workflows/ruby_event_store-browser_test.yml index 6c43c87da4..412d18ff6c 100644 --- a/.github/workflows/ruby_event_store-browser_test.yml +++ b/.github/workflows/ruby_event_store-browser_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-browser RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -53,24 +52,24 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.rack_2_0 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 }}" - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" - - uses: actions/cache@v3 - with: - path: "~/.elm" - key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} - - run: make install-npm test - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + cache-dependency-path: "${{ env.WORKING_DIRECTORY }}/elm/package-lock.json" + - uses: actions/cache@v3 + with: + path: "~/.elm" + key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }} + - run: make install-npm test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_coverage.yml b/.github/workflows/ruby_event_store-flipper_coverage.yml index c311daa351..5dbd4f6743 100644 --- a/.github/workflows/ruby_event_store-flipper_coverage.yml +++ b/.github/workflows/ruby_event_store-flipper_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_mutate.yml b/.github/workflows/ruby_event_store-flipper_mutate.yml index 35c2cf6c56..b2cfb88372 100644 --- a/.github/workflows/ruby_event_store-flipper_mutate.yml +++ b/.github/workflows/ruby_event_store-flipper_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-flipper_test.yml b/.github/workflows/ruby_event_store-flipper_test.yml index 3ceb05c1e1..4e1ebae294 100644 --- a/.github/workflows/ruby_event_store-flipper_test.yml +++ b/.github/workflows/ruby_event_store-flipper_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-flipper RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -43,15 +42,15 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.activesupport_6_0 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_coverage.yml b/.github/workflows/ruby_event_store-newrelic_coverage.yml index c6d7e822eb..d6741ca7c9 100644 --- a/.github/workflows/ruby_event_store-newrelic_coverage.yml +++ b/.github/workflows/ruby_event_store-newrelic_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_mutate.yml b/.github/workflows/ruby_event_store-newrelic_mutate.yml index 24eec33577..2a94fe751a 100644 --- a/.github/workflows/ruby_event_store-newrelic_mutate.yml +++ b/.github/workflows/ruby_event_store-newrelic_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-newrelic_test.yml b/.github/workflows/ruby_event_store-newrelic_test.yml index 7a82b41a9c..84fbecde79 100644 --- a/.github/workflows/ruby_event_store-newrelic_test.yml +++ b/.github/workflows/ruby_event_store-newrelic_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-newrelic RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_coverage.yml b/.github/workflows/ruby_event_store-outbox_coverage.yml index 8a9b728d56..f30236ba35 100644 --- a/.github/workflows/ruby_event_store-outbox_coverage.yml +++ b/.github/workflows/ruby_event_store-outbox_coverage.yml @@ -36,30 +36,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make mutate" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_mutate.yml b/.github/workflows/ruby_event_store-outbox_mutate.yml index 1eb8979978..e47de15fb8 100644 --- a/.github/workflows/ruby_event_store-outbox_mutate.yml +++ b/.github/workflows/ruby_event_store-outbox_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-outbox RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,30 +34,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make mutate-changes" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate-changes" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-outbox_test.yml b/.github/workflows/ruby_event_store-outbox_test.yml index 0711268473..5a2f119b9e 100644 --- a/.github/workflows/ruby_event_store-outbox_test.yml +++ b/.github/workflows/ruby_event_store-outbox_test.yml @@ -28,27 +28,25 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" - services: - mysql_5: + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -78,30 +76,30 @@ jobs: bundle_gemfile: Gemfile database_url: mysql2://root:secret@127.0.0.1:10008/rails_event_store?pool=5 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make test" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make test" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_coverage.yml b/.github/workflows/ruby_event_store-profiler_coverage.yml index 1688614602..1623ed8ca1 100644 --- a/.github/workflows/ruby_event_store-profiler_coverage.yml +++ b/.github/workflows/ruby_event_store-profiler_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_mutate.yml b/.github/workflows/ruby_event_store-profiler_mutate.yml index 3f590820d0..b2d35aaf90 100644 --- a/.github/workflows/ruby_event_store-profiler_mutate.yml +++ b/.github/workflows/ruby_event_store-profiler_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-profiler_test.yml b/.github/workflows/ruby_event_store-profiler_test.yml index 901316eba5..699baf5d57 100644 --- a/.github/workflows/ruby_event_store-profiler_test.yml +++ b/.github/workflows/ruby_event_store-profiler_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-profiler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_coverage.yml b/.github/workflows/ruby_event_store-protobuf_coverage.yml index 99071a8f27..bdf33a5b58 100644 --- a/.github/workflows/ruby_event_store-protobuf_coverage.yml +++ b/.github/workflows/ruby_event_store-protobuf_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_mutate.yml b/.github/workflows/ruby_event_store-protobuf_mutate.yml index 4e4928472d..75d0bd1647 100644 --- a/.github/workflows/ruby_event_store-protobuf_mutate.yml +++ b/.github/workflows/ruby_event_store-protobuf_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-protobuf RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-protobuf_test.yml b/.github/workflows/ruby_event_store-protobuf_test.yml index a6a1b4cda8..79ac616626 100644 --- a/.github/workflows/ruby_event_store-protobuf_test.yml +++ b/.github/workflows/ruby_event_store-protobuf_test.yml @@ -28,7 +28,6 @@ jobs: RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" DATABASE_URL: "${{ matrix.database_url }}" - strategy: fail-fast: false matrix: @@ -49,15 +48,15 @@ jobs: bundle_gemfile: Gemfile.rails_6_0 database_url: sqlite3:db.sqlite3 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_coverage.yml b/.github/workflows/ruby_event_store-rom_coverage.yml index 3744b3f501..ec2ae1e370 100644 --- a/.github/workflows/ruby_event_store-rom_coverage.yml +++ b/.github/workflows/ruby_event_store-rom_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_mutate.yml b/.github/workflows/ruby_event_store-rom_mutate.yml index 2407400c1b..800e9d585f 100644 --- a/.github/workflows/ruby_event_store-rom_mutate.yml +++ b/.github/workflows/ruby_event_store-rom_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-rom RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rom_test.yml b/.github/workflows/ruby_event_store-rom_test.yml index efd715491e..3123d9ca7c 100644 --- a/.github/workflows/ruby_event_store-rom_test.yml +++ b/.github/workflows/ruby_event_store-rom_test.yml @@ -29,45 +29,43 @@ 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 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -109,15 +107,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 data_type: text 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_coverage.yml b/.github/workflows/ruby_event_store-rspec_coverage.yml index f836050e25..190d0d959a 100644 --- a/.github/workflows/ruby_event_store-rspec_coverage.yml +++ b/.github/workflows/ruby_event_store-rspec_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_mutate.yml b/.github/workflows/ruby_event_store-rspec_mutate.yml index ab694dd391..937dbbe3fc 100644 --- a/.github/workflows/ruby_event_store-rspec_mutate.yml +++ b/.github/workflows/ruby_event_store-rspec_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-rspec_test.yml b/.github/workflows/ruby_event_store-rspec_test.yml index 9104b42d8f..17f400bb59 100644 --- a/.github/workflows/ruby_event_store-rspec_test.yml +++ b/.github/workflows/ruby_event_store-rspec_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store-rspec RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_coverage.yml b/.github/workflows/ruby_event_store-sequel_coverage.yml index 0cd7b24932..d55a7b47a3 100644 --- a/.github/workflows/ruby_event_store-sequel_coverage.yml +++ b/.github/workflows/ruby_event_store-sequel_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_mutate.yml b/.github/workflows/ruby_event_store-sequel_mutate.yml index dbdcc9461b..7d3ae51021 100644 --- a/.github/workflows/ruby_event_store-sequel_mutate.yml +++ b/.github/workflows/ruby_event_store-sequel_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sequel RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sequel_test.yml b/.github/workflows/ruby_event_store-sequel_test.yml index e48a404628..aa8769246c 100644 --- a/.github/workflows/ruby_event_store-sequel_test.yml +++ b/.github/workflows/ruby_event_store-sequel_test.yml @@ -29,45 +29,43 @@ 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 - mysql_5: + options: --health-cmd "pg_isready" --health-interval 10s --health-timeout 5s + --health-retries 5 + - mysql_5: image: mysql:5 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10005:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - mysql_8: + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 + - mysql_8: image: mysql:8 env: MYSQL_DATABASE: rails_event_store MYSQL_ROOT_PASSWORD: secret ports: - 10008:3306 - options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s - --health-retries 5 - + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout + 5s --health-retries 5 strategy: fail-fast: false matrix: @@ -109,15 +107,15 @@ jobs: database_url: mysql2://root:secret@127.0.0.1:10005/rails_event_store?pool=5 data_type: text 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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml index 9e86c92a7a..23e1952599 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_coverage.yml @@ -36,30 +36,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make mutate" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml index 152f8e1dd2..a9c6fdeaeb 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,30 +34,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make mutate-changes" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make mutate-changes" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml index 991162f932..ff7e5a5a74 100644 --- a/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml +++ b/.github/workflows/ruby_event_store-sidekiq_scheduler_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-sidekiq_scheduler RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -43,30 +42,30 @@ jobs: - ruby_version: ruby-3.2 bundle_gemfile: Gemfile.sidekiq_5_2 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v12 - with: - name: railseventstore - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: test -e ${{ env.BUNDLE_GEMFILE }}.lock + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: railseventstore + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - 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: | - nix-shell --run "make test" -E" - with import { }; - mkShell { - inputsFrom = [ - (import ../../support/nix/redis.nix) - ]; - } - " - working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file + - run: | + nix-shell --run "make test" -E" + with import { }; + mkShell { + inputsFrom = [ + (import ../../support/nix/redis.nix) + ]; + } + " + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_coverage.yml b/.github/workflows/ruby_event_store-transformations_coverage.yml index c33b608194..f0827f7106 100644 --- a/.github/workflows/ruby_event_store-transformations_coverage.yml +++ b/.github/workflows/ruby_event_store-transformations_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_mutate.yml b/.github/workflows/ruby_event_store-transformations_mutate.yml index 0e96016133..ca034b1a9f 100644 --- a/.github/workflows/ruby_event_store-transformations_mutate.yml +++ b/.github/workflows/ruby_event_store-transformations_mutate.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -35,15 +34,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store-transformations_test.yml b/.github/workflows/ruby_event_store-transformations_test.yml index 1f4797c17f..8c13c66666 100644 --- a/.github/workflows/ruby_event_store-transformations_test.yml +++ b/.github/workflows/ruby_event_store-transformations_test.yml @@ -27,7 +27,6 @@ jobs: WORKING_DIRECTORY: contrib/ruby_event_store-transformations RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_coverage.yml b/.github/workflows/ruby_event_store_coverage.yml index f5039242fd..0ccd9c2194 100644 --- a/.github/workflows/ruby_event_store_coverage.yml +++ b/.github/workflows/ruby_event_store_coverage.yml @@ -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 }}" \ No newline at end of file + - run: make mutate + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_mutate.yml b/.github/workflows/ruby_event_store_mutate.yml index b2fbfbdc77..0548c6d8ca 100644 --- a/.github/workflows/ruby_event_store_mutate.yml +++ b/.github/workflows/ruby_event_store_mutate.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -45,15 +44,15 @@ jobs: - 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 }}" \ No newline at end of file + - run: make mutate-changes + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/.github/workflows/ruby_event_store_test.yml b/.github/workflows/ruby_event_store_test.yml index 7b0dc6206c..7844aa1a2d 100644 --- a/.github/workflows/ruby_event_store_test.yml +++ b/.github/workflows/ruby_event_store_test.yml @@ -37,7 +37,6 @@ jobs: WORKING_DIRECTORY: ruby_event_store RUBY_VERSION: "${{ matrix.ruby_version }}" BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}" - strategy: fail-fast: false matrix: @@ -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 }}" \ No newline at end of file + - run: make test + working-directory: "${{ env.WORKING_DIRECTORY }}" \ No newline at end of file diff --git a/support/ci/assets.yaml.erb b/support/ci/assets.yaml.erb index deefb6a629..c322adb8b7 100644 --- a/support/ci/assets.yaml.erb +++ b/support/ci/assets.yaml.erb @@ -3,14 +3,4 @@ on: push: workflow_dispatch: jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> -<% unless services.empty? %> - services: - <%= services %> -<% end %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file diff --git a/support/ci/coverage.yaml.erb b/support/ci/coverage.yaml.erb index 328d9dae29..457c448bdb 100644 --- a/support/ci/coverage.yaml.erb +++ b/support/ci/coverage.yaml.erb @@ -14,12 +14,4 @@ on: paths: <%= paths %> jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> - strategy: - <%= strategy %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file diff --git a/support/ci/generate b/support/ci/generate index 9d88e6cb4c..bea57fe097 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -742,6 +742,22 @@ class CI workflows.each do |gem| name = gem.fetch(:name) filename = "#{name}.yml" + env = { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( + matrix_env_vars(gem.fetch(:matrix)) + ) + job = { + "runs-on" => "ubuntu-20.04", + "timeout-minutes" => 120, + "env" => env, + "services" => gem.fetch(:services), + "strategy" => { + "fail-fast" => false, + "matrix" => { + "include" => gem.fetch(:matrix) + } + }, + "steps" => gem.fetch(:steps) + }.reject { |k, v| k == "services" && v.empty? } File.write( File.join(workflows_root, filename), @@ -749,29 +765,8 @@ class CI File.read(File.join(template_root, gem.fetch(:template))) ).result_with_hash( name: name, - working_directory: gem.fetch(:working_directory), - strategy: - as_formatted_yaml( - { - "fail-fast" => false, - "matrix" => { - "include" => gem.fetch(:matrix) - } - }, - indent: 6 - ), - steps: as_formatted_yaml(gem.fetch(:steps), indent: 6), - services: - as_formatted_yaml(gem.fetch(:services).reduce(&:merge), indent: 6), paths: as_formatted_yaml(gem.fetch(:paths), indent: 6), - job_name: gem.fetch(:job_name), - env: - as_formatted_yaml( - { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( - matrix_env_vars(gem.fetch(:matrix)) - ), - indent: 6 - ) + job: as_formatted_yaml({ gem.fetch(:job_name) => job }, indent: 2) ) ) diff --git a/support/ci/template.yaml.erb b/support/ci/template.yaml.erb index e738ba26a2..3014254e0f 100644 --- a/support/ci/template.yaml.erb +++ b/support/ci/template.yaml.erb @@ -12,16 +12,4 @@ on: paths: <%= paths %> jobs: - <%= job_name %>: - runs-on: ubuntu-20.04 - timeout-minutes: 120 - env: - <%= env %> -<% unless services.empty? %> - services: - <%= services %> -<% end %> - strategy: - <%= strategy %> - steps: - <%= steps %> \ No newline at end of file + <%= job %> \ No newline at end of file