-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (53 loc) · 1.66 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
name: CI
on: [ push, pull_request_target ]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
continue-on-error: true
strategy:
matrix:
ruby-version:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails-version:
- "5.2.8"
- "6.1.6"
- "7.0.0"
- "7.0.1"
- "7.0.2"
- "7.0.3.1"
- "7.0.4.1"
exclude:
- { ruby-version: "3.0", rails-version: "5.2.8" }
- { ruby-version: "3.1", rails-version: "5.2.8" }
- { ruby-version: "3.1", rails-version: "7.0.0" } # See fixed Ruby 3.1 <> Rails 7.0.0 incompatibility: https://github.com/rails/rails/releases/tag/v7.0.1
- { ruby-version: "3.2", rails-version: "5.2.8" }
- { ruby-version: "3.2", rails-version: "7.0.0" }
- { ruby-version: "3.3", rails-version: "5.2.8" }
- { ruby-version: "3.3", rails-version: "7.0.0" }
name: tests (ruby-${{ matrix.ruby-version }}, rails-${{ matrix.rails-version }})
runs-on: ubuntu-latest
env:
MYSQL_HOST: '127.0.0.1'
RAILS_VERSION: ${{ matrix.rails-version }}
services:
mysql:
image: mysql:8
ports:
- "3306:3306"
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: --health-cmd "mysqladmin ping" --health-interval 5s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
- run: bundle update activerecord
- run: bundle exec rake