Skip to content

Commit

Permalink
Fix CI and simplify matrix (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 authored Jan 16, 2024
1 parent d408bdd commit bd4f58a
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 88 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/sentry_delayed_job_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,24 @@ jobs:
run:
working-directory: sentry-delayed_job
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest]
include:
- {
os: ubuntu-latest,
ruby_version: "3.2",
options:
{
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- { os: ubuntu-latest, ruby_version: "3.2", options: { codecov: 1 } }
- { ruby_version: "3.2", options: { codecov: 1 } }
exclude:
# Because Rails 7.0 currently doesn't work with Ruby head
# LoadError:
# cannot load such file -- mutex_m
- { ruby_version: "head" }
steps:
- uses: actions/checkout@v1
- name: Install sqlite
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/sentry_opentelemetry_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ jobs:
run:
working-directory: sentry-opentelemetry
name: Ruby ${{ matrix.ruby_version }} & OpenTelemetry ${{ matrix.opentelemetry_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
# opentelemetry_version: [1.2.0]
os: [ubuntu-latest]
include:
- {
os: ubuntu-latest,
ruby_version: 3.2,
options:
{
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- { os: ubuntu-latest, ruby_version: 3.2, options: { codecov: 1 } }
- { ruby_version: 3.2, options: { codecov: 1 } }
steps:
- uses: actions/checkout@v1

Expand Down
43 changes: 20 additions & 23 deletions .github/workflows/sentry_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,33 @@ jobs:
run:
working-directory: sentry-rails
name: Ruby ${{ matrix.ruby_version }} & Rails ${{ matrix.rails_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rails_version: [6.1.0, 7.0.0, 7.1.0]
ruby_version: [2.7, "3.0", "3.1", "3.2", "3.3"]
os: [ubuntu-latest]
include:
- { os: ubuntu-latest, ruby_version: "2.4", rails_version: 5.0.0 }
- { os: ubuntu-latest, ruby_version: "2.4", rails_version: 5.1.0 }
- { os: ubuntu-latest, ruby_version: "2.4", rails_version: 5.2.0 }
- { os: ubuntu-latest, ruby_version: "2.5", rails_version: 5.0.0 }
- { os: ubuntu-latest, ruby_version: "2.5", rails_version: 5.1.0 }
- { os: ubuntu-latest, ruby_version: "2.5", rails_version: 5.2.0 }
- { os: ubuntu-latest, ruby_version: "2.5", rails_version: 6.0.0 }
- { os: ubuntu-latest, ruby_version: "2.5", rails_version: 6.1.0 }
- { os: ubuntu-latest, ruby_version: "2.6", rails_version: 5.0.0 }
- { os: ubuntu-latest, ruby_version: "2.6", rails_version: 5.1.0 }
- { os: ubuntu-latest, ruby_version: "2.6", rails_version: 5.2.0 }
- { os: ubuntu-latest, ruby_version: "2.6", rails_version: 6.0.0 }
- { os: ubuntu-latest, ruby_version: "2.6", rails_version: 6.1.0 }
- { os: ubuntu-latest, ruby_version: "2.7", rails_version: 5.0.0 }
- { os: ubuntu-latest, ruby_version: "2.7", rails_version: 5.1.0 }
- { os: ubuntu-latest, ruby_version: "2.7", rails_version: 5.2.0 }
- { os: ubuntu-latest, ruby_version: "2.7", rails_version: 6.0.0 }
- { os: ubuntu-latest, ruby_version: "2.7", rails_version: 6.1.0 }
- { os: ubuntu-latest, ruby_version: "jruby", rails_version: 6.1.0 }
- { ruby_version: "2.4", rails_version: 5.0.0 }
- { ruby_version: "2.4", rails_version: 5.1.0 }
- { ruby_version: "2.4", rails_version: 5.2.0 }
- { ruby_version: "2.5", rails_version: 5.0.0 }
- { ruby_version: "2.5", rails_version: 5.1.0 }
- { ruby_version: "2.5", rails_version: 5.2.0 }
- { ruby_version: "2.5", rails_version: 6.0.0 }
- { ruby_version: "2.5", rails_version: 6.1.0 }
- { ruby_version: "2.6", rails_version: 5.0.0 }
- { ruby_version: "2.6", rails_version: 5.1.0 }
- { ruby_version: "2.6", rails_version: 5.2.0 }
- { ruby_version: "2.6", rails_version: 6.0.0 }
- { ruby_version: "2.6", rails_version: 6.1.0 }
- { ruby_version: "2.7", rails_version: 5.0.0 }
- { ruby_version: "2.7", rails_version: 5.1.0 }
- { ruby_version: "2.7", rails_version: 5.2.0 }
- { ruby_version: "2.7", rails_version: 6.0.0 }
- { ruby_version: "2.7", rails_version: 6.1.0 }
- { ruby_version: "jruby", rails_version: 6.1.0 }
- {
os: ubuntu-latest,
ruby_version: "3.2",
rails_version: 7.1.0,
options:
Expand All @@ -55,7 +53,6 @@ jobs:
},
}
- {
os: ubuntu-latest,
ruby_version: "3.2",
rails_version: 7.1.0,
options: { codecov: 1 },
Expand Down
49 changes: 24 additions & 25 deletions .github/workflows/sentry_raven_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- master
pull_request:
paths:
- 'sentry-raven/**'
- '.github/workflows/sentry_raven_test.yml'
- "sentry-raven/**"
- ".github/workflows/sentry_raven_test.yml"
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
Expand All @@ -20,14 +20,13 @@ jobs:
run:
working-directory: sentry-raven
name: Test on ruby ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: [0, 4.2, 5.2, 6.0.0]
ruby_version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', jruby-9.3]
os: [ubuntu-latest]
ruby_version: [2.3, 2.4, 2.5, 2.6, 2.7, "3.0", jruby-9.3]
include:
- ruby_version: '3.0'
- ruby_version: "3.0"
rails_version: 0
- ruby_version: 2.7
rails_version: 6.0.0
Expand All @@ -41,30 +40,30 @@ jobs:
rails_version: 4.2
- ruby_version: jruby-9.3
rails_version: 4.2
- ruby_version: '3.0'
- ruby_version: "3.0"
rails_version: 4.2
- ruby_version: '3.0'
- ruby_version: "3.0"
rails_version: 5.2
- ruby_version: '3.0'
- ruby_version: "3.0"
rails_version: 6.0.0

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
bundler: 1
ruby-version: ${{ matrix.ruby_version }}
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
bundler: 1
ruby-version: ${{ matrix.ruby_version }}

- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 5
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 5

- name: Build with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Build with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
6 changes: 2 additions & 4 deletions .github/workflows/sentry_resque_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,19 @@ jobs:
run:
working-directory: sentry-resque
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest]
include:
- {
os: ubuntu-latest,
ruby_version: "3.2",
options:
{
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- { os: ubuntu-latest, ruby_version: "3.2", options: { codecov: 1 } }
- { ruby_version: "3.2", options: { codecov: 1 } }
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/sentry_ruby_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,16 @@ jobs:
run:
working-directory: sentry-ruby
name: Ruby ${{ matrix.ruby_version }} & Rack ${{ matrix.rack_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
rack_version: [2.0, 3.0]
redis_rb_version: [4.0]
os: [ubuntu-latest]
include:
- { ruby_version: 3.2, rack_version: 0, redis_rb_version: 5.0 }
- { ruby_version: 3.2, rack_version: 2.0, redis_rb_version: 5.0 }
- {
os: ubuntu-latest,
ruby_version: 3.2,
rack_version: 0,
redis_rb_version: 5.0,
}
- {
os: ubuntu-latest,
ruby_version: 3.2,
rack_version: 2.0,
redis_rb_version: 5.0,
}
- {
os: ubuntu-latest,
ruby_version: 3.2,
rack_version: 3.0,
redis_rb_version: 5.0,
Expand All @@ -55,7 +43,6 @@ jobs:
},
}
- {
os: ubuntu-latest,
ruby_version: 3.2,
rack_version: 3.0,
redis_rb_version: 5.0,
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/sentry_sidekiq_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,21 @@ jobs:
run:
working-directory: sentry-sidekiq
name: Ruby ${{ matrix.ruby_version }} & Sidekiq ${{ matrix.sidekiq_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
sidekiq_version: ["5.0", "6.0", "7.0"]
ruby_version: ["2.7", "3.0", "3.1", "3.2", "3.3", jruby]
os: [ubuntu-latest]
include:
- { os: ubuntu-latest, ruby_version: 2.4, sidekiq_version: 5.0 }
- { os: ubuntu-latest, ruby_version: 2.5, sidekiq_version: 5.0 }
- { os: ubuntu-latest, ruby_version: 2.5, sidekiq_version: 6.0 }
- { os: ubuntu-latest, ruby_version: 2.6, sidekiq_version: 5.0 }
- { os: ubuntu-latest, ruby_version: 2.6, sidekiq_version: 6.0 }
- { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 5.0 }
- { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 6.0 }
- { os: ubuntu-latest, ruby_version: jruby, sidekiq_version: 7.0 }
- { ruby_version: 2.4, sidekiq_version: 5.0 }
- { ruby_version: 2.5, sidekiq_version: 5.0 }
- { ruby_version: 2.5, sidekiq_version: 6.0 }
- { ruby_version: 2.6, sidekiq_version: 5.0 }
- { ruby_version: 2.6, sidekiq_version: 6.0 }
- { ruby_version: jruby, sidekiq_version: 5.0 }
- { ruby_version: jruby, sidekiq_version: 6.0 }
- { ruby_version: jruby, sidekiq_version: 7.0 }
- {
os: ubuntu-latest,
ruby_version: "3.2",
sidekiq_version: 7.0,
options:
Expand All @@ -43,7 +41,6 @@ jobs:
},
}
- {
os: ubuntu-latest,
ruby_version: "3.2",
sidekiq_version: 7.0,
options: { codecov: 1 },
Expand Down

0 comments on commit bd4f58a

Please sign in to comment.