File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1515jobs :
1616 rubocop :
1717 runs-on : ubuntu-latest
18+ outputs :
19+ ruby_version : ${{ steps.ruby_version.outputs.versions }}
1820 steps :
1921 - uses : actions/checkout@v5
2022 - name : Setup Ruby
@@ -24,18 +26,16 @@ jobs:
2426 bundler-cache : true
2527 - name : Run rubocop
2628 run : bundle exec rubocop
29+ - id : ruby_version
30+ uses : voxpupuli/ruby-version@v1
2731
2832 test :
2933 runs-on : ubuntu-latest
3034 needs : rubocop
3135 strategy :
3236 fail-fast : false
3337 matrix :
34- ruby_version :
35- - 2.7.0
36- - 3.0.0
37- - 3.2.0
38- - 3.4
38+ ruby_version : ${{ fromJSON(needs.rubocop.outputs.ruby_version) }}
3939 concurrent_ruby_ext :
4040 - ' true'
4141 - ' false'
@@ -45,29 +45,29 @@ jobs:
4545 - sqlite3
4646 exclude :
4747 - db : mysql
48- ruby_version : 3.0.0
48+ ruby_version : ' 3.0'
4949 - db : mysql
50- ruby_version : 3.2.0
50+ ruby_version : ' 3.2'
5151 - db : mysql
52- ruby_version : 3.4
52+ ruby_version : ' 3.4'
5353 - db : mysql
5454 concurrent_ruby_ext : ' true'
5555 - db : sqlite3
56- ruby_version : 3.0.0
56+ ruby_version : ' 3.0'
5757 - db : sqlite3
58- ruby_version : 3.2.0
58+ ruby_version : ' 3.2'
5959 - db : sqlite3
60- ruby_version : 3.4
60+ ruby_version : ' 3.4'
6161 - db : sqlite3
6262 concurrent_ruby_ext : ' true'
6363 - db : postgresql
64- ruby_version : 3.0.0
64+ ruby_version : ' 3.0'
6565 concurrent_ruby_ext : ' true'
6666 - db : postgresql
67- ruby_version : 3.2.0
67+ ruby_version : ' 3.2'
6868 concurrent_ruby_ext : ' true'
6969 - db : postgresql
70- ruby_version : 3.4
70+ ruby_version : ' 3.4'
7171 concurrent_ruby_ext : ' true'
7272
7373 services :
You can’t perform that action at this time.
0 commit comments