diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8238e4b..b71d424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: build +name: test on: push: @@ -7,11 +7,18 @@ on: - cron: '12 3 * * *' jobs: - build: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 2.7 + + test: + needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: ['2.7', '3.0', '3.1', '3.2', 'head'] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ ubuntu-latest, macos-latest, windows-latest ] exclude: - { os: windows-latest, ruby: head }