-
Notifications
You must be signed in to change notification settings - Fork 600
73 lines (61 loc) · 2.45 KB
/
ci_jruby.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
70
71
72
73
name: JRuby Continuous Integration
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
jruby_unit_tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- name: Install JRuby
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # tag v1.207.0
with:
ruby-version: jruby-9.4.9.0
- name: Bundle
run: bundle install
- name: Run Unit Tests
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # tag v3.0.0
with:
timeout_minutes: 30
max_attempts: 2
command: bundle exec rake test:env[norails,rails61]
env:
VERBOSE_TEST_OUTPUT: true
JAVA_OPTS: --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist
JRUBY_OPTS: --dev
jruby_multiverse:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
suite: [active_support_broadcast_logger, active_support_logger, activemerchant, agent_only, async_http, bare, deferred_instrumentation, grape, high_security, httpclient, httprb, httpx, json, logger, marshalling, rack, resque, roda, roda_agent_disabled, ruby_openai, sequel, sinatra, sinatra_agent_disabled, stripe, thread, tilt, typhoeus]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- name: Check out the source code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- name: Install JRuby
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # tag v1.207.0
with:
ruby-version: jruby-9.4.9.0
- name: Bundle
run: bundle install
- name: Run Multiverse Tests
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # tag v3.0.0
with:
timeout_minutes: 20
max_attempts: 3
command: "bundle exec rake test:multiverse[${{ matrix.suite }}]"
env:
VERBOSE_TEST_OUTPUT: true
SERIALIZE: 1
JAVA_OPTS: --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist -Xmx4g -Xms512m
JRUBY_OPTS: --dev
- name: Annotate errors
if: ${{ failure() }}
uses: ./.github/actions/annotate