-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (52 loc) · 1.42 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
55
56
57
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: [3.1, 3.2, 3.3, 3.4]
gemfile: [
"gemfiles/graphql_2_1_0.gemfile",
"gemfiles/graphql_2_2_5.gemfile",
"gemfiles/graphql_2_3_11.gemfile",
"gemfiles/graphql_master.gemfile",
]
exclude:
- ruby: "3.1"
gemfile: gemfiles/graphql_2_3_11.gemfile
- ruby: "3.1"
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