forked from rails/jbuilder
-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (51 loc) · 1.41 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
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
sunstone:
name: TurboStremaer Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.2'
- '3.3'
encoder: [oj, wankel]
gemfile:
- gemfiles/rails_6_0.gemfile
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
allow_failures:
- false
include:
- ruby: ruby-head
gemfile: gemfiles/rails_7_1.gemfile
encoder: oj
allow_failures: true
- ruby: ruby-head
gemfile: gemfiles/rails_7_1.gemfile
encoder: wankel
allow_failures: true
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
steps:
- name: Install YAJL
run: |
wget 'https://github.com/lloyd/yajl/archive/refs/tags/2.1.0.tar.gz'
tar -xvf '2.1.0.tar.gz'
cd 'yajl-2.1.0' && ./configure && make && sudo make install
sudo ldconfig
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test:${{ matrix.encoder }} || $ALLOW_FAILURES