Skip to content

Commit 43983d0

Browse files
committed
Update CI workflow
1 parent f559d66 commit 43983d0

File tree

2 files changed

+11
-34
lines changed

2 files changed

+11
-34
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,15 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7-
8-
name: Ruby
9-
10-
on:
11-
push:
12-
branches: [ "master" ]
13-
pull_request:
14-
branches: [ "master" ]
15-
16-
permissions:
17-
contents: read
18-
1+
name: ci
2+
on: [push, pull_request]
193
jobs:
20-
test:
21-
22-
runs-on: ubuntu-latest
4+
build:
235
strategy:
246
matrix:
25-
ruby-version: ['3.2', '3.3', '3.4']
26-
7+
ruby: ["3.2", "3.3", "3.4", "jruby-10.0.0.0"]
8+
runs-on: ubuntu-latest
279
steps:
28-
- uses: actions/checkout@v3
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@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1
10+
- uses: actions/checkout@v4
11+
- uses: ruby/setup-ruby@v1
3412
with:
35-
ruby-version: ${{ matrix.ruby-version }}
36-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37-
- name: Run tests
38-
run: bundle exec rake test
13+
ruby-version: ${{ matrix.ruby }}
14+
bundler-cache: true
15+
- run: bundle exec rake test

spec/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def jruby?
66

77
SimpleCov.start do
88
add_filter "/spec"
9-
percent = (jruby?) ? 91.29 : 92.31
9+
percent = (jruby?) ? 91.38 : 93.16
1010
minimum_coverage(percent)
1111
end
1212

0 commit comments

Comments
 (0)