@@ -22,118 +22,52 @@ jobs:
22
22
bundler-cache : true
23
23
- name : Run rubocop
24
24
run : bundle exec rubocop --parallel --format progress
25
-
26
- grape-17 :
27
- runs-on : ubuntu-latest
28
- needs : ['rubocop']
29
- env :
30
- GRAPE_VERSION : ' 1.7.1'
25
+ test :
31
26
strategy :
32
27
matrix :
33
- ruby-version : ['3.0', '3.1', '3.2', '3.3', 'head']
34
- steps :
35
- - name : Check out branch
36
- uses : actions/checkout@v4
37
- - name : Set up Ruby
38
- uses : ruby/setup-ruby@v1
39
- with :
40
- ruby-version : ${{ matrix.ruby-version }}
41
- - name : Run rspec wo model parser
42
- run : |
43
- bundle update
44
- bundle exec rspec
45
- - name : Run rspec w entity parser
46
- env :
47
- MODEL_PARSER : grape-swagger-entity
48
- run : |
49
- bundle update
50
- bundle exec rspec
51
- - name : Run rspec w representable parser
52
- env :
53
- MODEL_PARSER : grape-swagger-representable
54
- run : |
55
- bundle update
56
- bundle exec rspec
57
-
58
- grape-18 :
28
+ entry :
29
+ - { ruby: '3.0', grape: '1.7.1' }
30
+ - { ruby: '3.1', grape: '1.7.1' }
31
+ - { ruby: '3.2', grape: '1.7.1' }
32
+ - { ruby: '3.3', grape: '1.7.1' }
33
+ - { ruby: 'head', grape: '1.7.1' }
34
+ - { ruby: '3.0', grape: '1.8.0' }
35
+ - { ruby: '3.1', grape: '1.8.0' }
36
+ - { ruby: '3.2', grape: '1.8.0' }
37
+ - { ruby: '3.3', grape: '1.8.0' }
38
+ - { ruby: 'head', grape: '1.8.0' }
39
+ - { ruby: '3.0', grape: '2.0.0' }
40
+ - { ruby: '3.1', grape: '2.0.0' }
41
+ - { ruby: '3.2', grape: '2.0.0' }
42
+ - { ruby: '3.3', grape: '2.0.0' }
43
+ - { ruby: 'head', grape: '2.0.0' }
44
+ - { ruby: '3.0', grape: '2.1.3' }
45
+ - { ruby: '3.1', grape: '2.1.3' }
46
+ - { ruby: '3.2', grape: '2.1.3' }
47
+ - { ruby: '3.3', grape: '2.1.3' }
48
+ - { ruby: 'head', grape: '2.1.3' }
49
+ - { ruby: '3.0', grape: '2.2.0' }
50
+ - { ruby: '3.1', grape: '2.2.0' }
51
+ - { ruby: '3.2', grape: '2.2.0' }
52
+ - { ruby: '3.3', grape: '2.2.0' }
53
+ - { ruby: 'head', grape: '2.2.0' }
54
+ - { ruby: '3.0', grape: 'HEAD' }
55
+ - { ruby: '3.1', grape: 'HEAD' }
56
+ - { ruby: '3.2', grape: 'HEAD' }
57
+ - { ruby: '3.3', grape: 'HEAD' }
58
+ - { ruby: 'head', grape: 'HEAD' }
59
+ name : test (ruby=${{ matrix.entry.ruby }}, grape=${{ matrix.entry.grape }})
59
60
runs-on : ubuntu-latest
60
61
needs : ['rubocop']
61
62
env :
62
- GRAPE_VERSION : ' 1.8.0'
63
- strategy :
64
- matrix :
65
- ruby-version : ['3.0', '3.1', '3.2', '3.3', 'head']
66
- steps :
67
- - name : Check out branch
68
- uses : actions/checkout@v4
69
- - name : Set up Ruby
70
- uses : ruby/setup-ruby@v1
71
- with :
72
- ruby-version : ${{ matrix.ruby-version }}
73
- - name : Run rspec wo model parser
74
- run : |
75
- bundle update
76
- bundle exec rspec
77
- - name : Run rspec w entity parser
78
- env :
79
- MODEL_PARSER : grape-swagger-entity
80
- run : |
81
- bundle update
82
- bundle exec rspec
83
- - name : Run rspec w representable parser
84
- env :
85
- MODEL_PARSER : grape-swagger-representable
86
- run : |
87
- bundle update
88
- bundle exec rspec
89
-
90
- grape-20 :
91
- runs-on : ubuntu-latest
92
- needs : ['rubocop']
93
- env :
94
- GRAPE_VERSION : ' 2.0.0'
95
- strategy :
96
- matrix :
97
- ruby-version : ['3.0', '3.1', '3.2', '3.3', 'head']
98
- steps :
99
- - name : Check out branch
100
- uses : actions/checkout@v4
101
- - name : Set up Ruby
102
- uses : ruby/setup-ruby@v1
103
- with :
104
- ruby-version : ${{ matrix.ruby-version }}
105
- - name : Run rspec wo model parser
106
- run : |
107
- bundle update
108
- bundle exec rspec
109
- - name : Run rspec w entity parser
110
- env :
111
- MODEL_PARSER : grape-swagger-entity
112
- run : |
113
- bundle update
114
- bundle exec rspec
115
- - name : Run rspec w representable parser
116
- env :
117
- MODEL_PARSER : grape-swagger-representable
118
- run : |
119
- bundle update
120
- bundle exec rspec
121
-
122
- grape-HEAD :
123
- runs-on : ubuntu-latest
124
- needs : ['rubocop']
125
- env :
126
- GRAPE_VERSION : ' HEAD'
127
- strategy :
128
- matrix :
129
- ruby-version : ['3.0', '3.1', '3.2', '3.3', 'head']
63
+ GRAPE_VERSION : ${{ matrix.entry.grape }}
130
64
steps :
131
65
- name : Check out branch
132
66
uses : actions/checkout@v4
133
67
- name : Set up Ruby
134
68
uses : ruby/setup-ruby@v1
135
69
with :
136
- ruby-version : ${{ matrix.ruby-version }}
70
+ ruby-version : ${{ matrix.entry. ruby }}
137
71
- name : Run rspec wo model parser
138
72
run : |
139
73
bundle update
0 commit comments