forked from zipmark/rspec_api_documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.61 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
58
59
60
61
62
63
64
65
---
name: CI
on: [push, pull_request]
jobs:
test:
name: "Testing"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Recent Rubies and Rails
- ruby-version: '3.2'
- ruby-version: '3.1'
- ruby-version: '3.0'
- ruby-version: '2.7'
- ruby-version: '2.6'
- ruby-version: '2.6'
- ruby-version: '2.7'
- ruby-version: '2.6'
# Old Rubies and Rails
- ruby-version: '2.5'
bundler: '1'
- ruby-version: '2.4'
bundler: '1'
- ruby-version: '2.4'
bundler: '1'
# Failing with a stack trace in active support
# - ruby-version: '2.4'
# rails-version: '4.1'
# bundler: '1'
continue-on-error: "${{ endsWith(matrix.ruby-version, 'head') }}"
env:
CI: "1"
steps:
- name: "Checkout Code"
uses: "actions/checkout@v4"
timeout-minutes: 5
with:
fetch-depth: 0
# - name: Install required libs
# run: |
# sudo apt-get -yqq install libsqlite3-dev
- name: "Build Ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby-version }}"
bundler: "${{ matrix.bundler || 2 }}"
bundler-cache: true
# env:
# RAILS_VERSION: ${{ matrix.rails-version }}
- name: "Run tests"
run: |
bundle exec rake
# env:
# RAILS_VERSION: ${{ matrix.rails-version }}