-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (59 loc) · 1.84 KB
/
checks.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
name: checks
on: [push, pull_request]
jobs:
checks:
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432
DISABLE_BOOTSNAP: true
DISABLE_BOOTSNAP_LOAD_PATH_CACHE: true
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
RAILS_ENV: test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
# Technically no longer maintained Ruby releases, but lets still test them:
- ruby-version: "2.6.10"
rails-version: "4.2"
- ruby-version: "2.7.8"
rails-version: "5.2"
- ruby-version: "2.7.8"
rails-version: "6.1"
- ruby-version: "2.7.8"
rails-version: "7.0"
# Security maintenance releases:
- ruby-version: "3.1.5"
rails-version: "7.0"
# Stable releases:
- ruby-version: "3.2.4"
rails-version: "7.1"
- ruby-version: "3.3.3"
rails-version: "7.1"
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Using Rails version ${{ matrix.rails-version }}
run: bundle install --gemfile=spec/support/Gemfile-rails-${{ matrix.rails-version }}
# - name: Lint
# run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec