-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (40 loc) · 1.1 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
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
strategy:
fail-fast: false
matrix:
include:
- gemfile: ar_5.2_pt_10.3
ruby: 2.5
- gemfile: ar_5.2_pt_10.3
ruby: 2.6
- gemfile: ar_6.0_pt_10.3
ruby: 2.6
- gemfile: ar_6.0_pt_10.3
ruby: 2.7
- gemfile: ar_6.1_pt_12.3
ruby: 2.6
- gemfile: ar_6.1_pt_12.3
ruby: 2.7
- gemfile: ar_6.1_pt_12.3
ruby: 3.0
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Bundle install
run: |
bundle config set gemfile "${GITHUB_WORKSPACE}/gemfiles/${{ matrix.gemfile }}.gemfile"
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rspec