Skip to content

Commit

Permalink
Update ci workflow ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Dec 29, 2023
1 parent c315b80 commit ced913f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit ced913f

Please sign in to comment.