Skip to content

Commit

Permalink
support checking out any repo for test-gem
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 16, 2024
1 parent 6971078 commit 6689385
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ on:
required: false
default: ''
type: string
gem_repository:
description: Gem repository to use
required: false
type: string
gem_version:
description: Gem version to use
required: false
type: string

jobs:
setup_matrix:
Expand All @@ -29,6 +37,9 @@ jobs:
steps:
- id: ruby
uses: ekohl/ruby-version@v0
with:
repository: ${{ inputs.gem_repository }}
ref: ${{ inputs.gem_version }}

test:
name: "Ruby ${{ matrix.ruby }}"
Expand All @@ -42,6 +53,9 @@ jobs:
- name: Load environment variables from caller
run: echo "${{ inputs.environment_variables }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
repository: ${{ inputs.gem_repository }}
ref: ${{ inputs.gem_version }}
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
Expand Down

0 comments on commit 6689385

Please sign in to comment.