Skip to content

Commit 7a1a0c1

Browse files
committed
Update CI for Redmine 6
1 parent c3af621 commit 7a1a0c1

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,32 @@ on:
1717
jobs:
1818
test:
1919
name: redmine:${{ matrix.redmine_version }} ruby:${{ matrix.ruby_version }} db:${{ matrix.db }}
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2121

2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
redmine_version: [4.2-stable, 5.0-stable, 5.1-stable, master]
26-
ruby_version: ['2.7', '3.0', '3.1', '3.2']
25+
redmine_version: [5.0-stable, 5.1-stable, 6.0-stable, master]
26+
ruby_version: ['3.1', '3.2', '3.3']
2727
db: ['mysql:5.7', 'postgres:10', 'sqlite3']
2828
# System test takes 2~3 times longer, so limit to specific matrix combinations
2929
# See: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
3030
include:
3131
- system_test: true
32-
redmine_version: 5.1-stable
33-
ruby_version: '3.2'
32+
redmine_version: 6.0-stable
33+
ruby_version: '3.3'
3434
db: 'mysql:5.7'
3535
exclude:
36-
- redmine_version: 4.2-stable
37-
ruby_version: '3.0'
38-
- redmine_version: 4.2-stable
39-
ruby_version: '3.1'
40-
- redmine_version: 4.2-stable
41-
ruby_version: '3.2'
4236
- redmine_version: 5.0-stable
4337
ruby_version: '3.2'
44-
- redmine_version: master
45-
ruby_version: '2.7'
38+
- redmine_version: 5.0-stable
39+
ruby_version: '3.3'
40+
- redmine_version: 5.1-stable
41+
ruby_version: '3.3'
4642

4743
steps:
4844
- name: Setup Redmine
49-
uses: hidakatsuya/action-setup-redmine@v1
45+
uses: hidakatsuya/action-setup-redmine@v2
5046
with:
5147
repository: redmine/redmine
5248
version: ${{ matrix.redmine_version }}
@@ -82,27 +78,27 @@ jobs:
8278
- name: Run plugin tests
8379
working-directory: redmine
8480
run: |
85-
bundle exec rake redmine:plugins:test:units NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
86-
bundle exec rake redmine:plugins:test:functionals NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
87-
bundle exec rake redmine:plugins:test:integration NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
81+
bundle exec rails test plugins/redmine_custom_fields_groups/test/unit
82+
bundle exec rails test plugins/redmine_custom_fields_groups/test/functional
83+
bundle exec rails test plugins/redmine_custom_fields_groups/test/integration
8884
if [ ${{ matrix.system_test }} = "true" ]; then
89-
bundle exec rake redmine:plugins:test:system NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
85+
bundle exec rails test plugins/redmine_custom_fields_groups/test/system
9086
fi
9187
9288
# - name: Run core tests
9389
# env:
9490
# RAILS_ENV: test
9591
# PARALLEL_WORKERS: 1
9692
# working-directory: redmine
97-
# run: bundle exec rake test
93+
# run: bundle exec rails test
9894

9995
# - name: Run core system tests
10096
# if: matrix.system_test == true
10197
# env:
10298
# RAILS_ENV: test
10399
# GOOGLE_CHROME_OPTS_ARGS: "headless,disable-gpu,no-sandbox,disable-dev-shm-usage"
104100
# working-directory: redmine
105-
# run: bundle exec rake test:system
101+
# run: bundle exec rails test:system
106102

107103
- name: Run uninstall test
108104
working-directory: redmine

0 commit comments

Comments
 (0)