This action installs Redmine and sets up an environment to run tests. It is primarily aimed at providing an environment to run tests for Redmine plugins.
MIT License
This action installs Redmine and sets up an environment to run tests. It is primarily aimed at providing an environment to run tests for Redmine plugins.
- uses: hidakatsuya/action-setup-redmine@v1
with:
# Redmine repository to setup. Default is redmine/redmine.
repository: 'redmine/redmine'
# The branch, tag or commit to checkout. Default is master.
version: 'master'
# Database to use for testing. Possible values are sqlite3 or
# PostgreSQL and MySQL Docker official image tags (e.g. postgres:14, mysql:8.1.0). Default is sqlite3
database: 'sqlite3'
# Ruby version to use for testing. See ruby/setup-ruby's ruby-version input for available versions.
ruby-version: '3.3'
# Directory to setup Redmine. Default is the current directory.
path: '.'
See also action.yml.
v4.2 or later
- uses: hidakatsuya/action-setup-redmine@v1
with:
repository: 'redmica/redmica'
version: 'v2.4.2'
database: 'postgres:14'
ruby-version: '3.2'
For example, you are developing the redmine_hello_world
plugin on GitHub repository. To run a test for that plugin in GitHub Action, do the following:
- uses: hidakatsuya/action-setup-redmine@v1
with:
ruby-version: '3.3'
- uses: action/checkout@v4
with:
path: plugins/redmine_hello_world
- run: |
bundle install
bin/rails redmine:plugins:test NAME=redmine_hello_world
This action follows the recommendations of GitHub Actions Versioning.