Skip to content

Commit

Permalink
Merge pull request #38 from gtt-project/fix/adjust-ci-with-redmine-ma…
Browse files Browse the repository at this point in the history
…ster

Adjust CI with redmine master
  • Loading branch information
sanak authored May 1, 2024
2 parents cfcdda0 + 54af2e5 commit 070ace8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
push:
branches:
- main
- master
- next
pull_request:
branches:
- main
- master
- next

jobs:
test:
Expand All @@ -24,8 +24,8 @@ jobs:
strategy:
fail-fast: false
matrix:
redmine_version: [4.2-stable, 5.0-stable, master]
ruby_version: ['2.6', '2.7', '3.0', '3.1', '3.2']
redmine_version: [4.2-stable, 5.0-stable, 5.1-stable, master]
ruby_version: ['2.7', '3.0', '3.1', '3.2']
db: [mysql, postgres, sqlite]
# # System test takes 2~3 times longer, so limit to specific matrix combinations
# # See: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
Expand All @@ -44,7 +44,7 @@ jobs:
- redmine_version: 5.0-stable
ruby_version: '3.2'
- redmine_version: master
ruby_version: '2.6'
ruby_version: '2.7'

services:
mysql:
Expand All @@ -67,14 +67,14 @@ jobs:

steps:
- name: Checkout Redmine
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: redmine/redmine
ref: ${{ matrix.redmine_version }}
path: redmine

- name: Checkout Plugin
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: redmine/plugins/${{ env.PLUGIN_NAME }}

Expand Down
2 changes: 1 addition & 1 deletion app/models/text_block.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class TextBlock < ActiveRecord::Base
class TextBlock < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
belongs_to :project
has_and_belongs_to_many :issue_statuses
acts_as_positioned :scope => [:project_id]
Expand Down

0 comments on commit 070ace8

Please sign in to comment.