-
Notifications
You must be signed in to change notification settings - Fork 196
47 lines (47 loc) · 1.92 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
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
entry:
- { ruby: "2.7", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "3.0", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "3.1", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "3.1", rails: "7.2.1", grape-swagger: "1.6.1" }
- { ruby: "3.2", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "3.2", rails: "6.1.7", grape-swagger: "2.1.1" }
- { ruby: "3.2", rails: "7.2.1", grape-swagger: "1.6.1" }
- { ruby: "3.2", rails: "7.2.1", grape-swagger: "2.1.1" }
- { ruby: "3.3", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "3.3", rails: "6.1.7", grape-swagger: "2.1.1" }
- { ruby: "3.3", rails: "7.2.1", grape-swagger: "1.6.1" }
- { ruby: "3.3", rails: "7.2.1", grape-swagger: "2.1.1" }
- { ruby: "jruby-9.4.6", rails: "6.1.7", grape-swagger: "1.6.1" }
- { ruby: "jruby-9.4.6", rails: "6.1.7", grape-swagger: "2.1.1" }
- { ruby: "jruby-9.4.6", rails: "7.2.1", grape-swagger: "1.6.1" }
- { ruby: "jruby-9.4.6", rails: "7.2.1", grape-swagger: "2.1.1" }
env:
GRAPE_SWAGGER_VERSION: ${{ matrix.entry.grape-swagger }}
RAILS_VERSION: ${{ matrix.entry.rails }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
bundler-cache: true
- name: Print Bundler Versions
run: bundle show
- name: Setup Firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: "111.0.1"
- uses: browser-actions/setup-geckodriver@latest
with:
geckodriver-version: "0.32.2"
- uses: coactions/setup-xvfb@v1
with:
run: bundle exec rake spec