-
Notifications
You must be signed in to change notification settings - Fork 936
84 lines (82 loc) · 2.08 KB
/
test.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: RSpec tests
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby:
name: ${{ matrix.ruby }} (timeout ${{ matrix.timeout }})
runs-on: ubuntu-latest
timeout-minutes: ${{ matrix.timeout }}
strategy:
fail-fast: false
matrix:
include:
- ruby: 2.5
timeout: 5
- ruby: 2.6
timeout: 5
- ruby: 2.7
timeout: 5
- ruby: '3.0'
timeout: 5
- ruby: 3.1
timeout: 5
- ruby: 3.2
timeout: 5
- ruby: 3.3
timeout: 5
- ruby: truffleruby
timeout: 50
- ruby: truffleruby-head
timeout: 50
- ruby: jruby
timeout: 5
- ruby: jruby-head
timeout: 5
- ruby: jruby-9.4
timeout: 5
- ruby: jruby-9.3
timeout: 5
- ruby: jruby-9.2
timeout: 5
steps:
- name: Installing libyaml-dev
run: |
sudo apt-get update
sudo apt-get install libyaml-dev
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: 3.3.12
bundler-cache: true
cache-version: 4
- name: Run tests
run: bundle exec rake spec
continue-on-error: ${{ matrix.ruby == 'truffleruby-head' || matrix.ruby == 'truffleruby' }}
actionmailer:
runs-on: ubuntu-latest
steps:
- name: Installing libyaml-dev
run: |
sudo apt-get update
sudo apt-get install libyaml-dev
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
cache-version: 4
- name: Setup mail with ActionMailer edge
run: |
git clone --depth=1 https://github.com/rails/rails.git -b main
cd rails
echo -e "\ngem 'mail', path: '../'" >> Gemfile
bundle update --bundler --source mail
- name: Run ActionMailer tests
run: |
cd rails/actionmailer
bundle exec rake