Skip to content

Commit 30f9122

Browse files
authored
Update ruby.yml
1 parent fadd769 commit 30f9122

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/ruby.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,27 @@
55
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
66
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
77

8-
name: Ruby
8+
name: rake
99

10-
on:
11-
push:
12-
branches: [ "master" ]
13-
pull_request:
14-
branches: [ "master" ]
10+
on: [push, pull_request]
1511

1612
permissions:
1713
contents: read
1814

1915
jobs:
2016
test:
21-
22-
runs-on: ubuntu-latest
2317
strategy:
18+
fail-fast: false
2419
matrix:
25-
ruby-version: ['3.3']
26-
20+
os: [ubuntu-latest, macos-latest]
21+
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
22+
ruby: ['3.3', head, jruby-head]
23+
runs-on: ${{ matrix.os }}
2724
steps:
2825
- uses: actions/checkout@v4
29-
- name: Set up Ruby
30-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
32-
# uses: ruby/setup-ruby@v1
33-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
26+
- uses: ruby/setup-ruby@v1
3427
with:
35-
ruby-version: ${{ matrix.ruby-version }}
28+
ruby-version: ${{ matrix.ruby }}
3629
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37-
- name: Run tests
30+
- name: Run rake
3831
run: bundle exec rake

0 commit comments

Comments
 (0)