77 pull_request :
88 workflow_dispatch :
99
10+ permissions : # added using https://github.com/step-security/secure-workflows
11+ contents : read
12+
1013concurrency :
1114 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1215 cancel-in-progress : true
1316
1417jobs :
1518 main :
16- name : Ruby ${{ matrix.ruby }}
19+ name : Spec - ${{ matrix.ruby }}
1720 runs-on : ubuntu-latest
18- env :
19- # See https://github.com/tmm1/test-queue#environment-variables
20- TEST_QUEUE_WORKERS : 2
2121 strategy :
2222 fail-fast : false
2323 matrix :
2424 os : [ubuntu]
2525 ruby : ['2.7', '3.0', '3.1', '3.2', '3.3', 'head']
2626
2727 steps :
28- - name : checkout
29- uses : actions/checkout@v4
30- - name : set up Ruby
31- uses : ruby/setup-ruby@v1
28+ - uses : actions/checkout@v4
29+ - uses : ruby/setup-ruby@v1
3230 with :
3331 ruby-version : ${{ matrix.ruby }}
3432 bundler-cache : true
3533 - name : spec
3634 run : bundle exec rake spec
37- - name : internal_investigation
38- run : bundle exec rake internal_investigation
3935
4036 jruby :
41- name : JRuby 9.4
37+ name : Spec - JRuby
4238 runs-on : ubuntu-latest
4339 steps :
44- - name : checkout
45- uses : actions/checkout@v4
46- - name : set up Ruby
47- uses : ruby/setup-ruby@v1
40+ - uses : actions/checkout@v4
41+ - uses : ruby/setup-ruby@v1
4842 with :
49- ruby-version : jruby-9.4
43+ ruby-version : jruby # Latest stable JRuby version
5044 bundler-cache : true
5145 - name : spec
5246 run : bundle exec rake spec
53- - name : internal_investigation
54- run : bundle exec rake internal_investigation
5547
5648 prism :
5749 runs-on : ubuntu-latest
5850 name : Prism
5951 steps :
6052 - uses : actions/checkout@v4
61- - name : set up Ruby
62- uses : ruby/setup-ruby@v1
53+ - uses : ruby/setup-ruby@v1
6354 with :
6455 # Specify the minimum Ruby version 2.7 required for Prism to run.
6556 ruby-version : 2.7
@@ -74,12 +65,11 @@ jobs:
7465 name : Check documentation syntax
7566 steps :
7667 - uses : actions/checkout@v4
77- - name : set up Ruby
78- uses : ruby/setup-ruby@v1
68+ - uses : ruby/setup-ruby@v1
7969 with :
80- ruby-version : 3.2
70+ ruby-version : ruby # Latest stable CRuby version
8171 bundler-cache : true
82- - name : test
72+ - name : Check documentation syntax
8373 run : bundle exec rake documentation_syntax_check
8474
8575 oldest_supported_rubocop :
9585 cat << EOF > Gemfile.local
9686 gem 'rubocop', '1.52.0' # Specify the oldest supported RuboCop version
9787 EOF
98- - name : set up Ruby
99- uses : ruby/setup-ruby@v1
88+ - uses : ruby/setup-ruby@v1
10089 with :
10190 ruby-version : 2.7
10291 bundler-cache : true
0 commit comments