forked from JsonApiClient/json_api_client
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (103 loc) · 3.32 KB
/
ruby.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
98
99
100
101
102
103
104
105
106
107
108
109
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} w/ ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby:
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
# - "3.2"
gemfile:
- "activesupport-3.2"
- "activesupport-4.0"
- "activesupport-4.1"
- "activesupport-4.2"
- "activesupport-5.0"
- "activesupport-5.1"
- "activesupport-5.2"
- "activesupport-6.0"
- "activesupport-6.1"
- "activesupport-7.0"
- "activesupport-7.1"
# exclude:
# - ruby: "2.4"
# gemfile: "activesupport-4.1"
# - ruby: "2.4"
# gemfile: "activesupport-4.2"
# - ruby: "2.4"
# gemfile: "activesupport-5.0"
# - ruby: "2.4"
# gemfile: "activesupport-5.1"
# - ruby: "2.4"
# gemfile: "activesupport-6.0"
# - ruby: "2.5"
# gemfile: "activesupport-4.1"
# - ruby: "2.5"
# gemfile: "activesupport-4.2"
# - ruby: "2.5"
# gemfile: "activesupport-5.0"
# - ruby: "2.5"
# gemfile: "activesupport-5.1"
# - ruby: "2.5"
# gemfile: "activesupport-5.2"
# - ruby: "2.6"
# gemfile: "activesupport-4.1"
# - ruby: "2.6"
# gemfile: "activesupport-4.2"
# - ruby: "2.6"
# gemfile: "activesupport-5.0"
# - ruby: "2.6"
# gemfile: "activesupport-5.1"
# - ruby: "2.6"
# gemfile: "activesupport-5.2"
# - ruby: "2.6"
# gemfile: "activesupport-6.0"
# - ruby: "2.6"
# gemfile: "activesupport-7.0"
# - ruby: "2.6"
# gemfile: "activesupport-7.1"
# - ruby: "2.7"
# gemfile: "activesupport-4.1"
# - ruby: "2.7"
# gemfile: "activesupport-4.2"
- name: Configure bundler
run: |
bundle config path vendor/bundle
- name: Create bundler lockfile
run: |
bundle lock
- uses: actions/cache@v3
with:
# NOTE: Bundler expands the path relative to the gemfile, not the
# current directory.
path: ./gemfiles/vendor/bundle
key: bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles( 'gemfiles/*.lock' ) }}
restore-keys: |
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-
- name: Install gems
run: |
bundle install --jobs 4
- name: Run tests
run: bundle exec rake