Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Aug 25, 2023
1 parent d63dc4b commit 455290d
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ name: Ruby CI

on:
pull_request:
branches:
- main
push:
branches:
- main
branches: [main]
workflow_dispatch:

jobs:
ruby-ci:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}

strategy:
fail-fast: true
fail-fast: false
matrix:
os:
- ubuntu-20.04
Expand All @@ -39,21 +36,31 @@ jobs:
ruby: mingw
- os: windows-latest
ruby: mswin
- os: windows-latest
ruby: jruby
continue-on-error: true
- os: macos-latest
ruby: '2.7'
- os: macos-latest
ruby: '3.0'
- os: macos-latest
ruby: '3.1'
- os: macos-latest
ruby: '3.1'
ruby: '3.2'
- os: ubuntu-22.04
ruby: head
continue-on-error: true
- os: ubuntu-22.04
ruby: '3.1'
- os: ubuntu-22.04
ruby: '3.2'
- os: ubuntu-22.04
ruby: truffleruby+graalvm-head
continue-on-error: true
- os: ubuntu-22.04
ruby: truffleruby-head
continue-on-error: true

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.continue-on-error || false }}

Expand All @@ -62,8 +69,11 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: 2
bundler-cache: true

- run: bundle exec ruby -S rake test --trace

- run: bundle exec standardrb
- if: matrix.os == 'ubuntu-22.04' && matrix.ruby == '3.2'
run: bundle exec standardrb

0 comments on commit 455290d

Please sign in to comment.