diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a73e7aa..78965e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,19 @@ on: - cron: "30 14 * * *" jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 3.0 + test-ruby-versions: + needs: ruby-versions runs-on: ubuntu-latest strategy: fail-fast: false matrix: - ruby: ['head', '3.2', '3.1', '3.0'] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 @@ -23,35 +30,37 @@ jobs: - run: bundle exec rake test test-rbs-versions: + needs: ruby-versions runs-on: ubuntu-latest strategy: fail-fast: false matrix: rbs: ['latest', '3.0', '2.7.0'] env: - GEMFILE_RBS_VERSION: ${{matrix.rbs}} + GEMFILE_RBS_VERSION: ${{ matrix.rbs }} steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.latest) }} bundler-cache: true - run: bundle install - run: bundle exec rake test test-prism-versions: + needs: ruby-versions runs-on: ubuntu-latest strategy: fail-fast: false matrix: prism: ['latest', '0.19.0'] env: - GEMFILE_PRISM_VERSION: ${{matrix.prism}} + GEMFILE_PRISM_VERSION: ${{ matrix.prism }} steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.latest) }} bundler-cache: true - run: bundle install - run: bundle exec rake test