Skip to content

Commit

Permalink
Update CI config: Include the latest Redmine versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Oct 18, 2023
1 parent 2494812 commit 4987743
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/4_2_10.yml → .github/workflows/4_2_11.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 4.2.10
name: Tests 4.2.11

env:
PLUGIN_NAME: redmine_sudo
REDMINE_VERSION: 4.2.10
REDMINE_VERSION: 4.2.11
RAILS_ENV: test

on:
Expand Down Expand Up @@ -86,11 +86,9 @@ jobs:
repository: jbbarth/redmine_base_rspec
path: redmine/plugins/redmine_base_rspec

# Stay on rails-dom-testing gem version "2.0.3", because "2.1.1" is not fully compatible with Redmine 4.2.10 - TODO Remove this when Redmine 4.2.11 is released
- name: Prepare Redmine source
working-directory: redmine
run: |
sed -i -e 's/.*rails-dom-testing.*/ gem "rails-dom-testing", "~> 2.0.3"/' Gemfile
sed -i '/rubocop/d' Gemfile
rm -f .rubocop*
cp plugins/redmine_base_rspec/spec/support/database-${{ matrix.db }}.yml config/database.yml
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/5_0_5.yml → .github/workflows/5_0_6.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests 5.0.5
name: Tests 5.0.6

env:
PLUGIN_NAME: redmine_sudo
REDMINE_VERSION: 5.0.5
REDMINE_VERSION: 5.0.6
RAILS_ENV: test

on:
Expand Down Expand Up @@ -86,11 +86,9 @@ jobs:
repository: jbbarth/redmine_base_rspec
path: redmine/plugins/redmine_base_rspec

# Stay on rails-dom-testing gem version "2.0.3", because "2.1.1" is not fully compatible with Redmine 5.0.5 - TODO Remove this when Redmine 5.0.6 is released
- name: Prepare Redmine source
working-directory: redmine
run: |
sed -i -e 's/.*rails-dom-testing.*/ gem "rails-dom-testing", "~> 2.0.3"/' Gemfile
sed -i '/rubocop/d' Gemfile
rm -f .rubocop*
cp plugins/redmine_base_rspec/spec/support/database-${{ matrix.db }}.yml config/database.yml
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Test status

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

[1]: https://github.com/jbbarth/redmine_sudo/actions/workflows/5_0_5.yml/badge.svg
[2]: https://github.com/jbbarth/redmine_sudo/actions/workflows/4_2_10.yml/badge.svg
[1]: https://github.com/jbbarth/redmine_sudo/actions/workflows/5_0_6.yml/badge.svg
[2]: https://github.com/jbbarth/redmine_sudo/actions/workflows/4_2_11.yml/badge.svg
[4]: https://github.com/jbbarth/redmine_sudo/actions/workflows/master.yml/badge.svg
[5]: https://github.com/jbbarth/redmine_sudo/actions

Expand Down

0 comments on commit 4987743

Please sign in to comment.