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 1d8f692 commit d1820d4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,31 @@ 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

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- 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
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') }}
30 changes: 16 additions & 14 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ 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
- uses: actions/checkout@v3

- 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 d1820d4

Please sign in to comment.