Skip to content

Commit 6ea7ca2

Browse files
committed
.
1 parent 84e9a83 commit 6ea7ca2

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,53 @@ jobs:
44
build:
55
if: "!contains(github.event.head_commit.message, '[skip ci]')"
66
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
721
strategy:
822
fail-fast: false
923
matrix:
1024
include:
1125
- ruby: 3.3
1226
gemfile: Gemfile
13-
postgres: 16
1427
rails_version: 7.2
1528
- ruby: 3.2
1629
gemfile: gemfiles/Gemfile-7-1
17-
postgres: 10
1830
rails_version: 7.1
1931
- ruby: 3.2
2032
gemfile: gemfiles/Gemfile-7-0
21-
postgres: 10
2233
rails_version: 7.0
2334
- ruby: 2.7
2435
gemfile: gemfiles/Gemfile-6-1
25-
postgres: 10
2636
rails_version: 6.1
2737
- ruby: 2.6
2838
gemfile: gemfiles/Gemfile-6-0
29-
postgres: 10
3039
rails_version: 6.0
3140
- ruby: 2.6
3241
gemfile: gemfiles/Gemfile-5-2
33-
postgres: 10
3442
rails_version: 5.0
3543

3644
env:
3745
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
3846
USE_OFFICIAL_GEM_SOURCE: 1
3947
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
4149
steps:
4250
- uses: actions/checkout@v2
4351
- uses: ruby/setup-ruby@v1
4452
with:
4553
ruby-version: ${{ matrix.ruby }}
4654
bundler-cache: true
47-
- uses: ankane/setup-postgres@v1
48-
with:
49-
postgres-version: ${{ matrix.postgres }}
5055
- run: createdb action-store-test
5156
- run: bundle exec rails test

0 commit comments

Comments
 (0)