-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.14 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
name: "CI Tests"
on: "pull_request"
jobs:
build:
name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails:
- "6.1"
- "7.0"
- "7.1"
- "7.2"
include:
- { ruby: "3.2", rails: "main" }
- { ruby: "3.3", rails: "main" }
exclude:
- { ruby: "2.7", rails: "7.2" }
- { ruby: "3.0", rails: "7.2" }
env:
RAILS_VERSION: "${{ matrix.rails }}"
steps:
- uses: "actions/checkout@v2"
- name: "Install Ruby ${{ matrix.ruby }}"
uses: "ruby/setup-ruby@v1"
with:
rubygems: 3.3.13
ruby-version: "${{ matrix.ruby }}"
- name: "Generate lockfile"
run: |
bundle config path vendor/bundle
bundle lock
- uses: "actions/cache@v1"
with:
path: "vendor/bundle"
key: bundle-${{ hashFiles('Gemfile.lock') }}
- name: "Build and test"
run: |
bin/setup
bin/rails test