-
-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (35 loc) · 921 Bytes
/
ci.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
name: CI
"on":
push:
branches:
- main
pull_request:
branches: "*"
jobs:
build:
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.3"]
rails: ["7.0", "7.1", "main"]
continue-on-error: [false]
env:
RAILS_VERSION: ${{ matrix.rails }}
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Generate lockfile
run: bundle lock
- name: Cache dependencies
uses: actions/cache@v3
with:
path: vendor/bundle
key: bundle-${{ hashFiles('Gemfile.lock') }}
- run: bundle check || bundle install
- name: Run rspec tests
run: bundle exec rspec
continue-on-error: ${{ matrix.continue-on-error }}