Skip to content

Commit e894827

Browse files
authored
Setup github actions for CI (#1354)
1 parent eb43272 commit e894827

File tree

2 files changed

+62
-33
lines changed

2 files changed

+62
-33
lines changed

.github/workflows/ruby.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'release-0-8', 'release-0-9', 'release-0-10' ]
6+
pull_request:
7+
branches: ['**']
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
services:
13+
postgres:
14+
image: postgres
15+
env:
16+
POSTGRES_PASSWORD: password
17+
POSTGRES_DB: test
18+
options: >-
19+
--health-cmd pg_isready
20+
--health-interval 10s
21+
--health-timeout 5s
22+
--health-retries 5
23+
ports:
24+
- 5432:5432
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
ruby:
29+
- 2.6.6
30+
- 2.7.2
31+
- 3.0.0
32+
rails:
33+
- 6.1.1
34+
- 6.0.3.4
35+
- 5.2.4.4
36+
- 5.1.7
37+
database_url:
38+
- postgresql://postgres:password@localhost:5432/test
39+
- sqlite3:test_db
40+
exclude:
41+
- ruby: 3.0.0
42+
rails: 6.0.3.4
43+
- ruby: 3.0.0
44+
rails: 5.2.4.4
45+
- ruby: 3.0.0
46+
rails: 5.1.7
47+
- database_url: postgresql://postgres:password@localhost:5432/test
48+
rails: 5.1.7
49+
env:
50+
RAILS_VERSION: ${{ matrix.rails }}
51+
DATABASE_URL: ${{ matrix.database_url }}
52+
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} DB ${{ matrix.database_url }}
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Set up Ruby
56+
uses: ruby/setup-ruby@v1
57+
with:
58+
ruby-version: ${{ matrix.ruby }}
59+
- name: Install dependencies
60+
run: bundle install --jobs 4 --retry 3
61+
- name: Run tests
62+
run: bundle exec rake test

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)