Sha256: 42eff4c1a012653cd4a24aaad5998516d5464c889ab7e265a086773e1d9ac121

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 Bytes

Contents

name: Ruby

on: [push,pull_request]

jobs:
  build-matrix:
    runs-on: ubuntu-latest
    steps: # https://michaelheap.com/dynamic-matrix-generation-github-actions/
    - id: set-matrix
      run: echo "::set-output name=version_matrix::$(curl https://endoflife.date/api/ruby.json | jq -c '[.[] | select(.eol > (now | strftime("%Y-%m-%d"))) | .cycle]')"
    outputs:
      version_matrix: ${{ steps.set-matrix.outputs.version_matrix }}
  ci:
    needs: build-matrix
    runs-on: ubuntu-latest
    strategy:
      matrix:
        version: ${{ fromJson(needs.build-matrix.outputs.version_matrix) }}
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.version }}
        bundler-cache: true
    - name: Run the default task
      run: bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pocket-ruby-0.6.0 .github/workflows/tests.yml