Skip to content

Commit 6fcc155

Browse files
committed
ci: modernize PostGIS test matrix for next
Test each supported Redmine version against the still-in-support Ruby versions it allows (https://redmine.jp/tech_note/supported-rubies/; 3.1/3.2 are EOL): - 6.0-stable -> Ruby 3.3 - 6.1-stable -> Ruby 3.3, 3.4 - Drop 5.1-stable (no currently supported Ruby) and master - PostGIS (postgis/postgis): span PG 15/17/18 + PostGIS 3.4/3.5/3.6 (13-3.4 & 17-3.5 -> 15-3.4, 17-3.5, 18-3.6) - system_test row on 6.1-stable + Ruby 3.4 - Drop the now-dead 5.1-stable rgeo gem-version override step
1 parent b59ebdc commit 6fcc155

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/test-postgis.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,25 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
redmine_version: [5.1-stable, 6.0-stable, master]
29-
ruby_version: ['3.1', '3.2', '3.3']
30-
db_version: [13-3.4, 17-3.5]
28+
# Test each Redmine version against the Ruby versions it supports
29+
# (https://redmine.jp/tech_note/supported-rubies/), limited to Rubies
30+
# still in upstream support (3.1 EOL 2025-03, 3.2 EOL 2026-03):
31+
# 6.0-stable -> 3.3
32+
# 6.1-stable -> 3.3, 3.4
33+
# (5.1-stable dropped: no currently supported Ruby.)
34+
redmine_version: [6.0-stable, 6.1-stable]
35+
ruby_version: ['3.3', '3.4']
36+
# postgis/postgis tags spanning PG 15/17/18 and PostGIS 3.4/3.5/3.6
37+
# (floor -> ceiling; ceiling matches the PG18 + PostGIS 3.6 runtime).
38+
db_version: [15-3.4, 17-3.5, 18-3.6]
3139
include:
3240
- system_test: true
33-
redmine_version: 6.0-stable
34-
ruby_version: '3.3'
41+
redmine_version: 6.1-stable
42+
ruby_version: '3.4'
3543
exclude:
36-
- redmine_version: 5.1-stable
37-
ruby_version: '3.3'
38-
- redmine_version: master
44+
# Redmine 6.0 supports Ruby up to 3.3 only.
45+
- redmine_version: 6.0-stable
46+
ruby_version: '3.4'
3947

4048
services:
4149
postgres:
@@ -103,15 +111,6 @@ jobs:
103111
encoding: utf8
104112
EOF
105113
106-
- name: Adjust Gem environment
107-
run: |
108-
case "${{ matrix.redmine_version }}" in
109-
5.1-stable)
110-
echo "GEM_RGEO_ACTIVERECORD_VERSION=7.0.1" >> ${GITHUB_ENV}
111-
echo "GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION=7.1.1" >> ${GITHUB_ENV}
112-
;;
113-
esac
114-
115114
- name: Install Ruby dependencies
116115
working-directory: redmine
117116
run: |

0 commit comments

Comments
 (0)