-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.28 KB
/
main.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
58
59
60
61
name: Ruby
on:
push:
branches:
- main
paths:
- 'lib/**'
- 'spec/**'
- 'Gemfile'
- 'shrine-thumbhash.gemspec'
pull_request:
paths:
- 'lib/**'
- 'spec/**'
- 'Gemfile'
- 'shrine-thumbhash.gemspec'
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}, Shrine ${{ matrix.shrine }}
strategy:
matrix:
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
shrine:
- '3.3'
- '3.4'
include:
- ruby: '2.6'
shrine: '3.0'
- ruby: '2.7'
shrine: '3.0'
- ruby: '2.6'
shrine: '3.1'
- ruby: '2.7'
shrine: '3.1'
- ruby: '2.6'
shrine: '3.2'
- ruby: '2.7'
shrine: '3.2'
steps:
- uses: actions/checkout@v3
- run: sudo apt install --no-install-recommends --no-install-suggests -y libvips-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: shrine-${{ matrix.shrine }}
env:
SHRINE_VERSION: ${{ matrix.shrine }}
- name: Run the default task
run: bundle exec rake