-
Notifications
You must be signed in to change notification settings - Fork 20
54 lines (49 loc) · 1.34 KB
/
rspec.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
name: RSpec
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 10 * * *"
jobs:
rspec:
runs-on: ubuntu-latest
env:
CI: true
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2]
gemfile: [
"gemfiles/graphql_1_12_0.gemfile",
"gemfiles/graphql_1_12_4.gemfile",
"gemfiles/graphql_1_13_7.gemfile",
"gemfiles/graphql_1_13_16.gemfile",
"gemfiles/graphql_2_0_0.gemfile",
"gemfiles/graphql_master.gemfile"
]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /home/runner/bundle
key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Bundle install
run: |
bundle config path /home/runner/bundle
bundle config --global gemfile ${{ matrix.gemfile }}
bundle install
bundle update
- name: Run RSpec
run: |
bundle exec rake ci_specs