Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 26, 2023
1 parent 574b45c commit 05e25b7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 25 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,30 @@ name: stable
on: [push, pull_request]

jobs:
test:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, ruby-head, jruby-9.4]

env:
BUNDLE_WITHOUT: "benchmark"
JRUBY_OPTS: "--debug"
strategy:
fail-fast: false

matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- jruby-9.4

steps:
- uses: actions/checkout@v4

- name: Setup ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler-cache: true # 'bundle install' and cache
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run tests
run: bundle exec rake
- run: |
bundle exec rake
27 changes: 15 additions & 12 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ on:
- cron: '0 0 * * *'

jobs:
test:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: [ruby-head, jruby-head]

env:
BUNDLE_WITHOUT: "benchmark"
JRUBY_OPTS: "--debug"
strategy:
fail-fast: false

matrix:
ruby-version:
- ruby-head
- jruby-head

steps:
- uses: actions/checkout@v4

- name: Setup ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}

- name: Run tests
run: bundle exec rake
- run: |
bundle exec rake
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}

0 comments on commit 05e25b7

Please sign in to comment.