From 05e25b78956a98532c5a2687ea0ce50582e0b3cc Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Tue, 26 Dec 2023 03:00:42 -0800 Subject: [PATCH] Fix workflows --- .github/workflows/stable.yml | 30 +++++++++++++++++------------- .github/workflows/unstable.yml | 27 +++++++++++++++------------ 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index af67714a..891a4b7f 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -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 diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml index e57276ef..70d676a0 100644 --- a/.github/workflows/unstable.yml +++ b/.github/workflows/unstable.yml @@ -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') }}