File tree Expand file tree Collapse file tree 2 files changed +42
-30
lines changed
Expand file tree Collapse file tree 2 files changed +42
-30
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : Ruby
23
3- on : [push, pull_request]
4+ on :
5+ pull_request : {}
6+ push :
7+ branches : main
48
59jobs :
6- build :
7-
8- runs-on : ubuntu-latest
9-
10+ rubocop_and_matrix :
11+ runs-on : ubuntu-24.04
12+ outputs :
13+ ruby : ${{ steps.ruby.outputs.versions }}
1014 steps :
1115 - uses : actions/checkout@v4
12- - name : Set up Ruby 2.7
16+ - name : Set up Ruby
1317 uses : ruby/setup-ruby@v1
1418 with :
15- ruby-version : ' 2.7'
16- bundler : ' 2.4.22'
19+ ruby-version : ' 3.4'
1720 bundler-cache : true
18- - name : Build and test with Rake
19- run : bundle exec rake
21+ - id : ruby
22+ uses : voxpupuli/ruby-version@v1
23+
24+ test :
25+ runs-on : ubuntu-24.04
26+ needs : rubocop_and_matrix
27+ strategy :
28+ fail-fast : false
29+ matrix :
30+ ruby : ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
31+ name : " Ruby ${{ matrix.ruby }}"
32+ steps :
33+ - uses : actions/checkout@v4
34+ - name : Install Ruby ${{ matrix.ruby }}
35+ uses : ruby/setup-ruby@v1
36+ with :
37+ ruby-version : ${{ matrix.ruby }}
38+ bundler-cache : true
39+ - name : Run tests
40+ run : bundle exec rake
41+ - name : Build gem
42+ run : gem build --verbose *.gemspec
43+
44+ tests :
45+ needs :
46+ - rubocop_and_matrix
47+ - test
48+ runs-on : ubuntu-latest
49+ name : Test suite
50+ steps :
51+ - run : echo Test suite completed
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments