File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 4
4
build :
5
5
if : " !contains(github.event.head_commit.message, '[skip ci]')"
6
6
runs-on : ubuntu-latest
7
+ services :
8
+ postgres :
9
+ image : postgres:15
10
+ env :
11
+ POSTGRES_DB : action-store-test
12
+ POSTGRES_USER : " postgres"
13
+ POSTGRES_PASSWORD : " 123456"
14
+ ports :
15
+ - 5432:5432
16
+ options : >-
17
+ --health-cmd pg_isready
18
+ --health-interval 10s
19
+ --health-timeout 5s
20
+ --health-retries 5
7
21
strategy :
8
22
fail-fast : false
9
23
matrix :
10
24
include :
11
25
- ruby : 3.3
12
26
gemfile : Gemfile
13
- postgres : 16
14
27
rails_version : 7.2
15
28
- ruby : 3.2
16
29
gemfile : gemfiles/Gemfile-7-1
17
- postgres : 10
18
30
rails_version : 7.1
19
31
- ruby : 3.2
20
32
gemfile : gemfiles/Gemfile-7-0
21
- postgres : 10
22
33
rails_version : 7.0
23
34
- ruby : 2.7
24
35
gemfile : gemfiles/Gemfile-6-1
25
- postgres : 10
26
36
rails_version : 6.1
27
37
- ruby : 2.6
28
38
gemfile : gemfiles/Gemfile-6-0
29
- postgres : 10
30
39
rails_version : 6.0
31
40
- ruby : 2.6
32
41
gemfile : gemfiles/Gemfile-5-2
33
- postgres : 10
34
42
rails_version : 5.0
35
43
36
44
env :
37
45
BUNDLE_GEMFILE : ${{ matrix.gemfile }}
38
46
USE_OFFICIAL_GEM_SOURCE : 1
39
47
RAILS_VERSION : ${{ matrix.rails_version }}
40
- DATABASE_URL : postgres://postgres:@localhost:5432/action-store-test
48
+ DATABASE_URL : postgres://postgres:123456 @localhost:5432/action-store-test
41
49
steps :
42
50
- uses : actions/checkout@v2
43
51
- uses : ruby/setup-ruby@v1
44
52
with :
45
53
ruby-version : ${{ matrix.ruby }}
46
54
bundler-cache : true
47
- - uses : ankane/setup-postgres@v1
48
- with :
49
- postgres-version : ${{ matrix.postgres }}
50
55
- run : createdb action-store-test
51
56
- run : bundle exec rails test
You can’t perform that action at this time.
0 commit comments