diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 233d08a..affb150 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,19 @@ on: - cron: '10 3 * * *' jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 2.6 + build: if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }} name: build (${{ matrix.ruby }} / ${{ matrix.os }}) + needs: ruby-versions strategy: matrix: - ruby: [ head, '3.1', '3.0', 2.7, 2.6 ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ ubuntu-latest, macos-latest, windows-latest ] exclude: - ruby: head