Skip to content

Commit dd3181f

Browse files
committed
cleanup github action
1 parent 1c337ae commit dd3181f

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ jobs:
1111
image: postgres
1212
env:
1313
POSTGRES_PASSWORD: postgres
14-
# Set health checks to wait until postgres has started
1514
options: >-
1615
--health-cmd pg_isready
1716
--health-interval 10s
1817
--health-timeout 5s
1918
--health-retries 5
2019
ports:
21-
# Maps tcp port 5432 on service container to the host
2220
- 5432:5432
2321

2422
strategy:
@@ -36,13 +34,11 @@ jobs:
3634
with:
3735
ruby-version: ${{ matrix.ruby-version }}
3836
- run: bundle install
39-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
40-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
37+
env:
38+
BUNDLE_GEMFILE: ${{ github.workspace }}/.github/gemfiles/${{ matrix.gemfile }}.gemfile
4139
- run: bundle exec rspec
42-
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
43-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
44-
# The hostname used to communicate with the PostgreSQL service container
40+
env:
41+
BUNDLE_GEMFILE: ${{ github.workspace }}/.github/gemfiles/${{ matrix.gemfile }}.gemfile
4542
POSTGRES_HOST: localhost
46-
# The default PostgreSQL port
4743
POSTGRES_PORT: 5432
4844
POSTGRES_PASSWORD: postgres

0 commit comments

Comments
 (0)