File tree Expand file tree Collapse file tree 3 files changed +47
-18
lines changed Expand file tree Collapse file tree 3 files changed +47
-18
lines changed Original file line number Diff line number Diff line change 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+
19+ jobs :
20+ test :
21+ runs-on : ubuntu-latest
22+ strategy :
23+ matrix :
24+ ruby-version :
25+ - ' 2.0'
26+ - ' 2.1'
27+ - ' 2.2'
28+ - ' 2.3'
29+ - ' 2.4'
30+ - ' 2.5'
31+ - ' 2.6'
32+ - ' 2.7'
33+ - jruby-9.1.17.0
34+ - jruby-9.2.21.0
35+ - jruby-9.3.6.0
36+
37+ steps :
38+ - uses : actions/checkout@v3
39+ - name : Set up Ruby
40+ # https://github.com/ruby/setup-ruby#versioning
41+ uses : ruby/setup-ruby@v1
42+ with :
43+ ruby-version : ${{ matrix.ruby-version }}
44+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
45+ - name : Run tests
46+ run : bundle exec rake
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def args
2121 end
2222
2323 def name
24- tokens . first & .value
24+ ( tokens . first ) && tokens . first . value
2525 end
2626
2727 def ==( other )
You can’t perform that action at this time.
0 commit comments