-
Notifications
You must be signed in to change notification settings - Fork 40
107 lines (96 loc) · 2.84 KB
/
Copy pathtest.yml
File metadata and controls
107 lines (96 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
rubygems: latest
- name: Run RuboCop
run: bundle exec rubocop
test:
name: test (ruby=${{ matrix.ruby }}, grape=${{ matrix.grape }}, grape-swagger=${{ matrix.grape_swagger}}, grape_entity=${{ matrix.grape_entity }})
strategy:
matrix:
include:
# Ruby 3.1 combinations
- ruby: '3.0'
grape: '~> 2.0.0'
grape_swagger: '~> 2.0.3'
grape_entity: '~> 1.0.1'
- ruby: '3.0'
grape: '~> 2.0.0'
grape_swagger: '~> 2.1.1'
grape_entity: 'head'
# Ruby 3.4 combinations
- ruby: '3.4'
grape: '~> 2.0.0'
grape_swagger: '~> 2.0.3'
grape_entity: '~> 1.0.1'
- ruby: '3.4'
grape: '~> 2.0.0'
grape_swagger: '~> 2.0.3'
grape_entity: 'head'
- ruby: '3.4'
grape: '~> 2.0.0'
grape_swagger: 'head'
grape_entity: '~> 1.0.1'
- ruby: '3.4'
grape: '~> 2.0.0'
grape_swagger: 'head'
grape_entity: 'head'
# - ruby: '3.4'
# grape: 'head'
# grape_swagger: 'head'
# grape_entity: '~> 1.0.1'
# - ruby: '3.4'
# grape: 'head'
# grape_swagger: 'head'
# grape_entity: 'head'
# Ruby head combinations
- ruby: 'head'
grape: '~> 2.0.0'
grape_swagger: '~> 2.0.3'
grape_entity: '~> 1.0.1'
- ruby: 'head'
grape: '~> 2.0.0'
grape_swagger: '~> 2.0.3'
grape_entity: 'head'
- ruby: 'head'
grape: '~> 2.0.0'
grape_swagger: 'head'
grape_entity: '~> 1.0.1'
# - ruby: 'head'
# grape: '~> 2.0.0'
# grape_swagger: 'head'
# grape_entity: 'head'
# - ruby: 'head'
# grape: 'head'
# grape_swagger: 'head'
# grape_entity: '~> 1.0.1'
# - ruby: 'head'
# grape: 'head'
# grape_swagger: 'head'
# grape_entity: 'head'
runs-on: ubuntu-latest
env:
GRAPE_VERSION: ${{ matrix.grape }}
GRAPE_SWAGGER_VERSION: ${{ matrix.grape_swagger }}
GRAPE_ENTITY_VERSION: ${{ matrix.grape_entity }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec