Skip to content

Commit d8dc593

Browse files
committed
Add jruby-10.0.5.0 to CI test matrix with Oracle JDK 21
Add jruby-10.0.5.0 to the `test` workflow matrix so the Oracle JDBC code path is exercised on every push. JRuby 10 targets Java 21 bytecode (class file version 65) and Oracle's ojdbc17.jar is certified with JDK 17 and JDK 21, so install Oracle JDK 21 explicitly via actions/setup-java for JRuby matrix entries (scoped via `if: startsWith(matrix.ruby, 'jruby')`). Picking Oracle JDK matches the distribution most users run in production alongside the Oracle JDBC driver, and Oracle JDK 21 is available at no cost under the NFTC license.
1 parent 9b16ad3 commit d8dc593

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ jobs:
88
build:
99

1010
runs-on: ubuntu-latest
11-
continue-on-error: true
11+
continue-on-error: false
1212
strategy:
1313
matrix:
1414
ruby: [
1515
'4.0',
1616
'3.4',
1717
'3.3',
18-
'3.2'
18+
'3.2',
19+
'jruby-10.0.5.0',
1920
]
2021
env:
2122
ORACLE_HOME: /opt/oracle/instantclient_23_26
@@ -42,6 +43,12 @@ jobs:
4243
4344
steps:
4445
- uses: actions/checkout@v6
46+
- name: Set up Java
47+
if: startsWith(matrix.ruby, 'jruby')
48+
uses: actions/setup-java@v4
49+
with:
50+
distribution: oracle
51+
java-version: '21'
4552
- name: Set up Ruby
4653
uses: ruby/setup-ruby@v1
4754
with:
@@ -61,6 +68,7 @@ jobs:
6168
sudo unzip -qo instantclient-sqlplus-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
6269
echo "/opt/oracle/instantclient_23_26" >> $GITHUB_PATH
6370
- name: Install JDBC Driver
71+
if: startsWith(matrix.ruby, 'jruby')
6472
run: |
6573
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/23261/ojdbc17.jar -O ./lib/ojdbc17.jar
6674
- name: Create database user

0 commit comments

Comments
 (0)