-
-
Notifications
You must be signed in to change notification settings - Fork 501
69 lines (64 loc) · 1.97 KB
/
sentry_raven_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
66
67
68
69
name: sentry-raven Test
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
paths:
- "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:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
defaults:
run:
working-directory: sentry-raven
name: Test on ruby ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
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]
include:
- ruby_version: "3.0"
rails_version: 0
- ruby_version: 2.7
rails_version: 6.0.0
env: RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
exclude:
- ruby_version: 2.3
rails_version: 6.0.0
- ruby_version: 2.4
rails_version: 6.0.0
- ruby_version: 2.7
rails_version: 4.2
- ruby_version: jruby-9.3
rails_version: 4.2
- ruby_version: "3.0"
rails_version: 4.2
- ruby_version: "3.0"
rails_version: 5.2
- ruby_version: "3.0"
rails_version: 6.0.0
steps:
- uses: actions/checkout@v4
- 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: Build with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake