-
-
Notifications
You must be signed in to change notification settings - Fork 494
65 lines (60 loc) · 2.47 KB
/
sentry_sidekiq_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: sentry-sidekiq Test
on:
workflow_dispatch:
push:
branches:
- master
- \d+-\d+
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
defaults:
run:
working-directory: sentry-sidekiq
name: Ruby ${{ matrix.ruby_version }} & Sidekiq ${{ matrix.sidekiq_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
sidekiq_version: ['5.0', '6.0', '7.0']
ruby_version: ['2.7', '3.0', '3.1', '3.2', 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 }
- { os: ubuntu-latest, ruby_version: '3.2', sidekiq_version: 7.0, options: { rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal" } }
- { os: ubuntu-latest, ruby_version: '3.2', sidekiq_version: 7.0, options: { codecov: 1 } }
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler: "2.3"
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.sidekiq_version == '7.0' && 6 || 5 }}
- name: Run specs with Sidekiq ${{ matrix.sidekiq_version }}
env:
SIDEKIQ_VERSION: ${{ matrix.sidekiq_version }}
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
make test
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml