Skip to content

Commit a19df5c

Browse files
committed
continue to test sidekiq 7
1 parent fa72583 commit a19df5c

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
RAILS_ENV: development
1212
EMBEDDED_HTTP_SERVER_TIMEOUT: '30'
1313
WORKER_SPAWN_TIMEOUT: '15'
14-
CONFIG_DIGEST: d02685daad5f72653e1a4cb618d0e01ce9c0e801e03a3b76109e0d200e373cca
14+
CONFIG_DIGEST: ded80c0391f5fdf2954ab0fc646368b60605a3474cc0a719ed96c62e07792a5a
1515
'on':
1616
push:
1717
branches:
@@ -215,6 +215,51 @@ jobs:
215215
run: bundle exec rake
216216
needs:
217217
- ruby-3-4-default
218+
ruby-3-4-sidekiq-7-x:
219+
name: ruby 3.4, sidekiq-7.x
220+
runs-on: ubuntu-latest
221+
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name,
222+
'full-ci') || contains(github.event.pull_request.labels.*.name, 'sidekiq-7.x')
223+
services:
224+
redis:
225+
image: redis
226+
ports:
227+
- 6379:6379
228+
options: "--entrypoint redis-server"
229+
env:
230+
BUNDLE_GEMFILE: gemfiles/sidekiq-7.x/Gemfile
231+
steps:
232+
- name: Checkout
233+
uses: actions/checkout@v3
234+
- name: Setup ruby
235+
uses: ruby/setup-ruby@v1
236+
with:
237+
ruby-version: '3.4'
238+
- name: Install APT dependencies
239+
run: |
240+
sudo apt-get update
241+
sudo apt-get install -yq sqlite3 libsqlite3-dev
242+
- name: Setup cache (bundler)
243+
uses: actions/cache@v3
244+
with:
245+
path: "${{ github.workspace }}/vendor/bundle"
246+
key: "${{ runner.os }}-gems-3.4-sidekiq-7.x-${{ hashFiles('gemfiles/sidekiq-7.x/Gemfile.lock')
247+
}}"
248+
restore-keys: |-
249+
${{ runner.os }}-gems-3.4-sidekiq-7.x-
250+
${{ runner.os }}-gems-3.4-
251+
- name: bundle install
252+
run: "gem install bundler \nbundle install\n"
253+
- name: Run tests
254+
run: |
255+
bundle exec rake workflow:verify[$CONFIG_DIGEST]
256+
bundle exec rake
257+
- name: Run tests (agent disabled)
258+
env:
259+
SKYLIGHT_DISABLE_AGENT: 'true'
260+
run: bundle exec rake
261+
needs:
262+
- ruby-3-4-default
218263
ruby-3-2-graphql-2-0-17:
219264
name: ruby 3.2, graphql-2.0.17
220265
runs-on: ubuntu-latest
@@ -1008,6 +1053,7 @@ jobs:
10081053
- ruby-3-2-rails-7-1-x-mongo
10091054
- ruby-3-2-elasticsearch-elasticsearch
10101055
- ruby-3-1-sidekiq-5-x
1056+
- ruby-3-4-sidekiq-7-x
10111057
- ruby-3-2-graphql-2-0-17
10121058
- ruby-3-1-rails-7-1-x
10131059
- ruby-3-2-rails-7-1-x

gemfiles/sidekiq-7.x/Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: "../.."
4+
5+
# TODO: Check if we need Rails
6+
gem "rails", "~> 7.1.0"
7+
gem "sidekiq", "~> 7"
8+
gem "sqlite3", "~> 2"

0 commit comments

Comments
 (0)