forked from ruby-grape/grape
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (91 loc) · 2.58 KB
/
test.yml
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
---
name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
lint:
name: RuboCop
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
test:
strategy:
fail-fast: false
matrix:
ruby:
- 2.5
- 2.6
- 2.7
- "3.0"
gemfile:
- Gemfile
- gemfiles/rack1.gemfile
- gemfiles/rack2.gemfile
- gemfiles/rack2_2.gemfile
- gemfiles/rack_edge.gemfile
- gemfiles/rails_5.gemfile
- gemfiles/rails_6.gemfile
- gemfiles/rails_6_1.gemfile
experimental: [false]
include:
- ruby: "3.0"
gemfile: 'gemfiles/multi_json.gemfile'
experimental: false
- ruby: "3.0"
gemfile: 'gemfiles/multi_xml.gemfile'
experimental: false
- ruby: "3.0"
gemfile: 'gemfiles/rails_7.gemfile'
experimental: false
- ruby: 2.7
gemfile: 'gemfiles/multi_json.gemfile'
experimental: false
- ruby: 2.7
gemfile: 'gemfiles/multi_xml.gemfile'
experimental: false
- ruby: 2.7
gemfile: 'gemfiles/rails_7.gemfile'
experimental: false
- ruby: 2.7
gemfile: 'gemfiles/rails_edge.gemfile'
experimental: false
- ruby: "ruby-head"
experimental: true
- ruby: "truffleruby-head"
experimental: true
- ruby: "jruby-head"
experimental: true
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- 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
- name: Run tests (spec/integration/eager_load)
if: ${{ matrix.gemfile == 'Gemfile' }}
run: bundle exec rspec spec/integration/eager_load
- name: Run tests (spec/integration/multi_json)
if: ${{ matrix.gemfile == 'gemfiles/multi_json.gemfile' }}
run: bundle exec rspec spec/integration/multi_json
- name: Run tests (spec/integration/multi_xml)
if: ${{ matrix.gemfile == 'gemfiles/multi_xml.gemfile' }}
run: bundle exec rspec spec/integration/multi_xml