-
Notifications
You must be signed in to change notification settings - Fork 647
56 lines (49 loc) · 1.5 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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
name: Tests with Ruby ${{ matrix.ruby-version }} and Rails ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
matrix:
gemfile: ["5.0"]
ruby-version: [2.6]
include:
- gemfile: "5.0"
ruby-version: 2.7
- gemfile: "5.1"
ruby-version: 2.6
- gemfile: "5.1"
ruby-version: 2.7
- gemfile: "5.2"
ruby-version: 2.6
- gemfile: "5.2"
ruby-version: 2.7
- gemfile: "6.0"
ruby-version: 2.6
- gemfile: "6.0"
ruby-version: 2.7
- gemfile: "6.1"
ruby-version: 2.7
- gemfile: "6.1"
ruby-version: '3.0'
- gemfile: "7.0"
ruby-version: 3.1
- gemfile: "7.0"
ruby-version: 3.2
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
WKHTMLTOPDF_BIN: /usr/bin/wkhtmltopdf
steps:
- uses: actions/checkout@v3
- name: Install OS dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y wkhtmltopdf
- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests with Ruby ${{ matrix.ruby-version }} and Rails ${{ matrix.gemfile }}
run: bundle exec rake