Skip to content

Commit 5103e9c

Browse files
committed
Run tests with Redmine 6.0.5, 5.1.8 and 5.0.12
1 parent 5d599d3 commit 5103e9c

File tree

6 files changed

+104
-38
lines changed

6 files changed

+104
-38
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ jobs:
4343
# runs-on: ubuntu-latest
4444

4545
# services:
46-
# redmine-60002:
47-
# image: redmine:6.0.2
46+
# redmine-60005:
47+
# image: redmine:6.0.5
4848
# ports:
49-
# - "6002:3000"
49+
# - "5060:3000"
5050
# env:
5151
# # Workaround: Remove secret for Rails 7.2 so it will be generated automatically
5252
# # @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
5353
# # REDMINE_SECRET_KEY_BASE: supersecretkey
5454
# REDMINE_PLUGINS_MIGRATE: true
5555
# volumes:
56-
# - /home/runner/work/_temp/redmine-60002_data/files:/usr/src/redmine/files
57-
# - /home/runner/work/_temp/redmine-60002_data/sqlite:/usr/src/redmine/sqlite
56+
# - /home/runner/work/_temp/redmine-60005_data/files:/usr/src/redmine/files
57+
# - /home/runner/work/_temp/redmine-60005_data/sqlite:/usr/src/redmine/sqlite
5858
# options: --health-cmd="wget -O /dev/null http://localhost:3000" --health-start-period=30s --health-interval=30s --health-timeout=30s --health-retries=3
5959

6060
# strategy:
@@ -83,7 +83,7 @@ jobs:
8383
# uses: "ramsey/composer-install@v2"
8484

8585
# - name: Run behat
86-
# run: vendor/bin/behat --config tests/Behat/behat.yml --profile=github-actions --suite=redmine_60002
86+
# run: vendor/bin/behat --config tests/Behat/behat.yml --profile=github-actions --suite=redmine_60005
8787

8888
code-quality:
8989
name: Check ${{ matrix.tool }} (PHP ${{ matrix.php }})

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Changed
1717

1818
- Improvement in `Redmine\Client\AbstractApi::retrieveData()` by using `total_count` from redmine response to avoid unnecessary http requests.
19-
- Behaviour-driven tests are run against Redmine 6.0.2, 5.1.4, 5.0.10.
19+
- Behaviour-driven tests are run against Redmine 6.0.5, 5.1.8, 5.0.12.
2020

2121
### Deprecated
2222

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"scripts": {
5454
"bdt": [
5555
"Composer\\Config::disableProcessTimeout",
56-
"@behat --format=progress --suite=redmine_60002",
57-
"@behat --format=progress --suite=redmine_50105",
58-
"@behat --format=progress --suite=redmine_50010"
56+
"@behat --format=progress --suite=redmine_60005",
57+
"@behat --format=progress --suite=redmine_50108",
58+
"@behat --format=progress --suite=redmine_50012"
5959
],
6060
"behat": "behat --config tests/Behat/behat.yml",
6161
"codestyle": "php-cs-fixer fix",

docker-compose.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*
1212

1313
redmine-dev:
14-
image: redmine:6.0.2
14+
image: redmine:6.0.5
1515
ports:
1616
- "3000:3000"
1717
environment:
@@ -26,39 +26,39 @@ services:
2626
# Make sure the following services are configured in:
2727
# - /tests/Behat/behat.yml
2828

29-
redmine-60002:
30-
image: redmine:6.0.2
29+
redmine-60005:
30+
image: redmine:6.0.5
3131
ports:
32-
- "6002:3000"
32+
- "5060:3000"
3333
environment:
3434
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
3535
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
3636
# REDMINE_SECRET_KEY_BASE: supersecretkey
3737
REDMINE_PLUGINS_MIGRATE: true
3838
volumes:
39-
- ./.docker/redmine-60002_data/files:/usr/src/redmine/files
40-
- ./.docker/redmine-60002_data/sqlite:/usr/src/redmine/sqlite
39+
- ./.docker/redmine-60005_data/files:/usr/src/redmine/files
40+
- ./.docker/redmine-60005_data/sqlite:/usr/src/redmine/sqlite
4141

42-
redmine-50105:
43-
image: redmine:5.1.5
42+
redmine-50108:
43+
image: redmine:5.1.8
4444
user: "1000:1000"
4545
ports:
46-
- "5105:3000"
46+
- "5051:3000"
4747
environment:
4848
REDMINE_SECRET_KEY_BASE: supersecretkey
4949
REDMINE_PLUGINS_MIGRATE: true
5050
volumes:
51-
- ./.docker/redmine-50105_data/files:/usr/src/redmine/files
52-
- ./.docker/redmine-50105_data/sqlite:/usr/src/redmine/sqlite
51+
- ./.docker/redmine-50108_data/files:/usr/src/redmine/files
52+
- ./.docker/redmine-50108_data/sqlite:/usr/src/redmine/sqlite
5353

54-
redmine-50010:
55-
image: redmine:5.0.10
54+
redmine-50012:
55+
image: redmine:5.0.12
5656
user: "1000:1000"
5757
ports:
58-
- "5010:3000"
58+
- "5050:3000"
5959
environment:
6060
REDMINE_SECRET_KEY_BASE: supersecretkey
6161
REDMINE_PLUGINS_MIGRATE: true
6262
volumes:
63-
- ./.docker/redmine-50010_data/files:/usr/src/redmine/files
64-
- ./.docker/redmine-50010_data/sqlite:/usr/src/redmine/sqlite
63+
- ./.docker/redmine-50012_data/files:/usr/src/redmine/files
64+
- ./.docker/redmine-50012_data/sqlite:/usr/src/redmine/sqlite

tests/Behat/behat.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,36 @@ default:
33
default:
44
paths:
55
- '%paths.base%/features'
6-
redmine_60002:
6+
redmine_60005:
77
contexts:
88
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
9-
redmineVersion: '6.0.2'
9+
redmineVersion: '6.0.5'
1010
rootPath: '%paths.base%/../../.docker'
11-
redmine_50105:
11+
redmine_50108:
1212
contexts:
1313
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
14-
redmineVersion: '5.1.5'
14+
redmineVersion: '5.1.8'
1515
rootPath: '%paths.base%/../../.docker'
16-
redmine_50010:
16+
redmine_50012:
1717
contexts:
1818
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
19-
redmineVersion: '5.0.10'
19+
redmineVersion: '5.0.12'
2020
rootPath: '%paths.base%/../../.docker'
2121

2222
github-actions:
2323
suites:
24-
redmine_60002:
24+
redmine_60005:
2525
contexts:
2626
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
27-
redmineVersion: '6.0.2'
27+
redmineVersion: '6.0.5'
2828
rootPath: '/home/runner/work/_temp'
29-
redmine_50105:
29+
redmine_50108:
3030
contexts:
3131
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
32-
redmineVersion: '5.1.5'
32+
redmineVersion: '5.1.8'
3333
rootPath: '/home/runner/work/_temp'
34-
redmine_50010:
34+
redmine_50012:
3535
contexts:
3636
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
37-
redmineVersion: '5.0.10'
37+
redmineVersion: '5.0.12'
3838
rootPath: '/home/runner/work/_temp'

tests/RedmineExtension/RedmineVersion.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66

77
enum RedmineVersion: string
88
{
9+
/**
10+
* Redmine 6.0.5
11+
*
12+
* @link https://www.redmine.org/versions/209
13+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_6_0#605-2025-04-20
14+
*/
15+
case V6_0_5 = '6.0.5';
16+
17+
/**
18+
* Redmine 6.0.4
19+
*
20+
* @link https://www.redmine.org/versions/206
21+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_6_0#604-2025-03-10
22+
*/
23+
case V6_0_4 = '6.0.4';
24+
25+
/**
26+
* Redmine 6.0.3
27+
*
28+
* @link https://www.redmine.org/versions/203
29+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_6_0#603-2025-01-29
30+
*/
31+
case V6_0_3 = '6.0.3';
32+
933
/**
1034
* Redmine 6.0.2
1135
*
@@ -30,6 +54,30 @@ enum RedmineVersion: string
3054
*/
3155
case V6_0_0 = '6.0.0';
3256

57+
/**
58+
* Redmine 5.1.8
59+
*
60+
* @link https://www.redmine.org/versions/208
61+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_1#518-2025-04-20
62+
*/
63+
case V5_1_8 = '5.1.8';
64+
65+
/**
66+
* Redmine 5.1.7
67+
*
68+
* @link https://www.redmine.org/versions/205
69+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_1#517-2025-03-10
70+
*/
71+
case V5_1_7 = '5.1.7';
72+
73+
/**
74+
* Redmine 5.1.6
75+
*
76+
* @link https://www.redmine.org/versions/204
77+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_1#516-2025-01-29
78+
*/
79+
case V5_1_6 = '5.1.6';
80+
3381
/**
3482
* Redmine 5.1.5
3583
*
@@ -78,6 +126,24 @@ enum RedmineVersion: string
78126
*/
79127
case V5_1_0 = '5.1.0';
80128

129+
/**
130+
* Redmine 5.0.12
131+
*
132+
* @link https://www.redmine.org/versions/207
133+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_0#5012-2025-03-10
134+
*/
135+
136+
case V5_0_12 = '5.0.12';
137+
138+
/**
139+
* Redmine 5.0.11
140+
*
141+
* @link https://www.redmine.org/versions/200
142+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_0#5011-2025-01-30
143+
*/
144+
145+
case V5_0_11 = '5.0.11';
146+
81147
/**
82148
* Redmine 5.0.10
83149
*

0 commit comments

Comments
 (0)