7
7
pull_request :
8
8
workflow_dispatch :
9
9
10
+ permissions : # added using https://github.com/step-security/secure-workflows
11
+ contents : read
12
+
10
13
concurrency :
11
14
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12
15
cancel-in-progress : true
13
16
14
17
jobs :
15
18
main :
16
- name : Ruby ${{ matrix.ruby }}
19
+ name : Spec - ${{ matrix.ruby }}
17
20
runs-on : ubuntu-latest
18
- env :
19
- # See https://github.com/tmm1/test-queue#environment-variables
20
- TEST_QUEUE_WORKERS : 2
21
21
strategy :
22
22
fail-fast : false
23
23
matrix :
24
24
os : [ubuntu]
25
25
ruby : ['2.7', '3.0', '3.1', '3.2', '3.3', 'head']
26
26
27
27
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
32
30
with :
33
31
ruby-version : ${{ matrix.ruby }}
34
32
bundler-cache : true
35
33
- name : spec
36
34
run : bundle exec rake spec
37
- - name : internal_investigation
38
- run : bundle exec rake internal_investigation
39
35
40
36
jruby :
41
- name : JRuby 9.4
37
+ name : Spec - JRuby
42
38
runs-on : ubuntu-latest
43
39
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
48
42
with :
49
- ruby-version : jruby-9.4
43
+ ruby-version : jruby # Latest stable JRuby version
50
44
bundler-cache : true
51
45
- name : spec
52
46
run : bundle exec rake spec
53
- - name : internal_investigation
54
- run : bundle exec rake internal_investigation
55
47
56
48
prism :
57
49
runs-on : ubuntu-latest
58
50
name : Prism
59
51
steps :
60
52
- uses : actions/checkout@v4
61
- - name : set up Ruby
62
- uses : ruby/setup-ruby@v1
53
+ - uses : ruby/setup-ruby@v1
63
54
with :
64
55
# Specify the minimum Ruby version 2.7 required for Prism to run.
65
56
ruby-version : 2.7
@@ -74,12 +65,11 @@ jobs:
74
65
name : Check documentation syntax
75
66
steps :
76
67
- uses : actions/checkout@v4
77
- - name : set up Ruby
78
- uses : ruby/setup-ruby@v1
68
+ - uses : ruby/setup-ruby@v1
79
69
with :
80
- ruby-version : 3.2
70
+ ruby-version : ruby # Latest stable CRuby version
81
71
bundler-cache : true
82
- - name : test
72
+ - name : Check documentation syntax
83
73
run : bundle exec rake documentation_syntax_check
84
74
85
75
oldest_supported_rubocop :
95
85
cat << EOF > Gemfile.local
96
86
gem 'rubocop', '1.52.0' # Specify the oldest supported RuboCop version
97
87
EOF
98
- - name : set up Ruby
99
- uses : ruby/setup-ruby@v1
88
+ - uses : ruby/setup-ruby@v1
100
89
with :
101
90
ruby-version : 2.7
102
91
bundler-cache : true
0 commit comments