-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (48 loc) · 1.25 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
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
strategy:
fail-fast: false
matrix:
ruby: [2.7]
gemfile: ["gemfiles/railsmaster.gemfile"]
include:
- ruby: ruby-head
gemfile: "gemfiles/railsmaster.gemfile"
- ruby: 3.0
gemfile: "Gemfile"
- ruby: 2.7
gemfile: "Gemfile"
- ruby: 2.6.5
gemfile: "Gemfile"
- ruby: 2.5.7
gemfile: "gemfiles/activerecord42.gemfile"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
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: 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 rspec --force-color