-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1005 Bytes
/
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
name: Test
on: [push]
jobs:
runTests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.2.2]
rails-version: [70, 71]
include:
- ruby-version: 2.6.10
rails-version: 52
- ruby-version: 2.7.8
rails-version: 60
- ruby-version: 2.7.8
rails-version: 61
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: delayed_job_test
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
steps:
- uses: actions/checkout@master
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: |
bundle exec rspec