-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 952 Bytes
/
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
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby: [3.0, 3.3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Test against rails main
if: ${{ matrix.ruby == 3.3 }}
run: |
bundle exec appraisal rails-main bundle install
bundle exec appraisal rails-main rake test
- name: Test against rails 7
run: |
bundle exec appraisal rails-7 bundle install
bundle exec appraisal rails-7 rake test
- name: Test against rails 6
run: |
bundle exec appraisal rails-6 bundle install
bundle exec appraisal rails-6 rake test