Skip to content

Invoca/ruby-test-matrix-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Ruby Test Matrix Workflow

This workflow is for the testing of ruby repositories against a matrix of both ruby and gemfile versions. Ruby versions are provided via input parameter and Gemfiles are automatically parsed out of the calling repository.

Usage

Other workflows can run this workflow similar to using a Github Action

Example

---
jobs:
  tests:
    uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main

This default usage will run the rspec test suite using the following matrix strategy

matrix:
  ruby: [3.1, 3.2, 3.3, 3.4]
  gemfile: // All files from the calling repo that ends with `*gemfile`

Available Parameters

Parameters can be passed to the workflow using the usual Github Action syntax

uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main
with:
  input-1: "hello"
  input-2: "world"
  • ruby-versions: (string, optional) The array of ruby versions to use in the matrix (defaults to "[3.1, 3.2, 3.3, 3.4]").

    with:
      ruby-versions: "['3.0', 3.1, 3.2, 3.3, 3.4]"
  • pre-test-hook: (string, optional) A hook for running arbitrary commands before tests are run.

    with:
      pre-test-hook: "bundle exec rails db:migrate"
  • test-command: (string, optional) The specific test command to run (defaults to bundle exec rspec).

    with:
      test-command: "bundle exec rake test"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •