Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ybiquitous/dynamic-ruby-versions-action
GitHub Action to build Ruby versions dynamically
https://github.com/ybiquitous/dynamic-ruby-versions-action
Last synced: 15 days ago
JSON representation
GitHub Action to build Ruby versions dynamically
- Host: GitHub
- URL: https://github.com/ybiquitous/dynamic-ruby-versions-action
- Owner: ybiquitous
- License: mit
- Created: 2022-06-02T12:38:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-03T00:31:28.000Z (over 2 years ago)
- Last Synced: 2024-11-13T13:58:17.485Z (about 2 months ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamic Ruby versions action
GitHub Action to build Ruby versions dynamically. You don’t need to create a PR to add a new Ruby version to CI matrixes.
## Usage
The simplest case:
```yaml
jobs:
ruby-versions:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.versions.outputs.versions }}
steps:
- id: versions
uses: ybiquitous/dynamic-ruby-versions-action@v1
# with:
# type: 'cruby' # or 'cruby-jruby', 'cruby-truffleruby', 'all'test:
needs: ruby-versions
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# more steps...
```The case to add outdated versions:
```yaml
steps:
- id: versions
uses: ybiquitous/dynamic-ruby-versions-action@v1
with:
add: '"2.5", "2.6"' # must be comma-separated strings with double quotes
```