diff --git a/.github/workflows/rails-integration-tests.yml b/.github/workflows/rails-integration-tests.yml index ec77492..8d28e27 100644 --- a/.github/workflows/rails-integration-tests.yml +++ b/.github/workflows/rails-integration-tests.yml @@ -6,19 +6,17 @@ on: branches: - main -env: - RAILS_VERSIONS: '["5.2.8.1", "6.1.7.6", "7.1.3.2"]' - jobs: set-matrix: runs-on: ubuntu-latest name: Set Rails versions outputs: - RAILS_VERSIONS: ${{ env.RAILS_VERSIONS }} + RAILS_VERSIONS: ${{ steps.set-matrix.outputs.RAILS_VERSIONS }} steps: - name: Compute outputs run: | - echo "RAILS_VERSIONS=${{ env.RAILS_VERSIONS }}" >> $GITHUB_OUTPUT + rails_versions=$(curl https://rubygems.org/api/v1/versions/rails.json | jq 'group_by(.number[:1])[] | (.[0].number) | select(.[:1]|tonumber > 4)' | jq -s -c) + echo "RAILS_VERSIONS='$rails_versions'" >> $GITHUB_OUTPUT build-rails: strategy: fail-fast: false