Skip to content

Commit 0298829

Browse files
committed
Remove PostgreSQL service from GitHub Actions
We use SQLite so there’s no need to spin up an extra database.
1 parent a933584 commit 0298829

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,14 @@ jobs:
2222
rails_version: 6.1
2323
- ruby_version: 3.3
2424
rails_version: 6.1
25-
services:
26-
db:
27-
image: postgres:16
28-
ports: ["5432:5432"]
29-
env:
30-
POSTGRES_USER: postgres
31-
POSTGRES_PASSWORD: postgres
32-
options: >-
33-
--health-cmd pg_isready
34-
--health-interval 10s
35-
--health-timeout 5s
36-
--health-retries 5
3725
steps:
3826
- uses: actions/checkout@v4
3927
- name: Setup Ruby
4028
uses: ruby/setup-ruby@v1
4129
with:
4230
ruby-version: ${{ matrix.ruby_version }}
4331
- name: Build and run test
44-
env:
45-
DATABASE_URL: postgres://postgres:@localhost:5432/test
46-
POSTGRES_USER: postgres
47-
POSTGRES_PASSWORD: postgres
4832
run: |
49-
sudo apt-get -yqq install libpq-dev
5033
bundle
5134
bundle exec appraisal rails_${{ matrix.rails_version }} bundle
5235
bundle exec appraisal rails_${{ matrix.rails_version }} rake

0 commit comments

Comments
 (0)