Skip to content

Commit

Permalink
Update CI Config: add latest Redmine versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Nov 20, 2024
1 parent 783b94a commit eee861f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/5_1_3.yml → .github/workflows/5_1_4.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 5.1.3
name: Tests 5.1.4

env:
PLUGIN_NAME: redmine_organizations
REDMINE_VERSION: 5.1.3
REDMINE_VERSION: 5.1.4

on:
push:
Expand Down Expand Up @@ -88,8 +88,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
10 changes: 4 additions & 6 deletions .github/workflows/4_2_11.yml → .github/workflows/6_0_1.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 4.2.11
name: Tests 6.0.1

env:
PLUGIN_NAME: redmine_organizations
REDMINE_VERSION: 4.2.11
REDMINE_VERSION: 6.0.1

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:

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

Expand Down Expand Up @@ -88,12 +88,10 @@ 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
echo 'gem "builder", "~> 3.2.4"' >> Gemfile
- name: Install Ruby dependencies
working-directory: redmine
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Tests status

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

[1]: https://github.com/jbbarth/redmine_organizations/actions/workflows/4_2_11.yml/badge.svg
[2]: https://github.com/jbbarth/redmine_organizations/actions/workflows/5_1_3.yml/badge.svg
[1]: https://github.com/jbbarth/redmine_organizations/actions/workflows/6_0_1.yml/badge.svg
[2]: https://github.com/jbbarth/redmine_organizations/actions/workflows/5_1_4.yml/badge.svg
[4]: https://github.com/jbbarth/redmine_organizations/actions/workflows/master.yml/badge.svg
[5]: https://github.com/jbbarth/redmine_organizations/actions

0 comments on commit eee861f

Please sign in to comment.