Skip to content

Commit

Permalink
Update CI config: add Redmine 6 and drop support of Redmine 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Dec 23, 2024
1 parent f4e673e commit f32c3fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/5_1_2.yml → .github/workflows/5_1_5.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 5.1.2
name: Tests 5.1.5

env:
PLUGIN_NAME: redmine_customize_core_fields
REDMINE_VERSION: 5.1.2
REDMINE_VERSION: 5.1.5
RAILS_ENV: test

on:
Expand Down Expand Up @@ -89,8 +89,6 @@ jobs:
- name: Prepare Redmine source
working-directory: redmine
run: |
# TODO Remove the following line when https://www.redmine.org/issues/40551 is fixed
sed -i -e 's/.*mocha.*/ gem "mocha", "2.1.0"/' Gemfile # Fix core tests not compatible with Mocha 2.2.0
rm -f test/integration/routing/plugins_test.rb # Fix routing tests # TODO Remove this line when https://www.redmine.org/issues/38707 is fixed
sed -i '/rubocop/d' Gemfile
rm -f .rubocop*
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/4_2_11.yml → .github/workflows/6_0_2.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 4.2.11
name: Tests 6.0.2

env:
PLUGIN_NAME: redmine_customize_core_fields
REDMINE_VERSION: 4.2.11
REDMINE_VERSION: 6.0.2
RAILS_ENV: test

on:
Expand All @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
ruby: ['2.7']
ruby: ['3.3']
db: ['postgres']
fail-fast: false

Expand Down Expand Up @@ -89,8 +89,7 @@ jobs:
- name: Prepare Redmine source
working-directory: redmine
run: |
# TODO Remove the following line when https://www.redmine.org/issues/40551 is fixed
sed -i -e 's/.*mocha.*/ gem "mocha", "2.1.0"/' Gemfile # Fix core tests not compatible with Mocha 2.2.0
rm -f test/integration/routing/plugins_test.rb # Fix routing tests # TODO Remove this line when https://www.redmine.org/issues/38707 is fixed
sed -i '/rubocop/d' Gemfile
rm -f .rubocop*
cp plugins/redmine_base_rspec/spec/support/database-${{ matrix.db }}.yml config/database.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
ruby: ['3.2']
ruby: ['3.3']
db: ['postgres']
fail-fast: false

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ And finally restart your Redmine instance.
Test status
------------

| Plugin branch | Redmine Version | Test Status |
|---------------|-----------------|--------------------|
| master | 5.1.2 | [![5.1.2][1]][5] |
| master | 4.2.11 | [![4.2.11][2]][5] |
| master | master | [![master][4]][5] |

[1]: https://github.com/nanego/redmine_customize_core_fields/actions/workflows/5_1_2.yml/badge.svg
[2]: https://github.com/nanego/redmine_customize_core_fields/actions/workflows/4_2_11.yml/badge.svg
| Plugin branch | Redmine Version | Test Status |
|---------------|-----------------|-------------------|
| master | 5.1.5 | [![5.1.5][1]][5] |
| master | 6.0.2 | [![6.0.2][2]][5] |
| master | master | [![master][4]][5] |

[1]: https://github.com/nanego/redmine_customize_core_fields/actions/workflows/5_1_5.yml/badge.svg
[2]: https://github.com/nanego/redmine_customize_core_fields/actions/workflows/6_0_2.yml/badge.svg
[4]: https://github.com/nanego/redmine_customize_core_fields/actions/workflows/master.yml/badge.svg
[5]: https://github.com/nanego/redmine_customize_core_fields/actions

Expand Down

0 comments on commit f32c3fc

Please sign in to comment.