Skip to content

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.

License

Notifications You must be signed in to change notification settings

hidakatsuya/action-setup-redmine

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Redmine

Build

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.

Usage

runs-on: ubuntu-latest

steps:
- uses: hidakatsuya/[email protected]
  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.4'

    # Directory to setup Redmine. Default is the current directory.
    path: '.'

See also action.yml.

Supported Redmine versions

v5.1 or later

If you want to use it with Redmine v5.0, you can use v2.

Supported runners

ubuntu-24.04 or later

Environment details

Unicode fonts:

  • DejaVu font

Environment variables:

  • GOOGLE_CHROME_OPTS_ARGS: headless,disable-gpu,no-sandbox,disable-dev-shm-usage

Example

Setting up RedMica

- uses: hidakatsuya/[email protected]
  with:
    repository: 'redmica/redmica'
    version: 'v4.0.0'
    database: 'postgres:14'
    ruby-version: '3.4'

Running Redmine plugin tests

For example, you are developing the redmine_hello_world plugin on GitHub repository. To run tests for that plugin in GitHub Action, do the following:

- uses: hidakatsuya/[email protected]
  with:
    ruby-version: '3.4'

- uses: action/checkout@v6
  with:
    path: plugins/redmine_hello_world

- run: |
    bundle install
    bin/rails redmine:plugins:test NAME=redmine_hello_world

Versioning

This action follows the recommendations of GitHub Actions Versioning.

Releasing

  1. Make sure CI for main branch has passed
  2. Create a new release to publish to the GitHub Marketplace
  3. Make sure that the release workflow has passed

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages