Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Apr 18, 2024
1 parent 4db0c82 commit 6c1bbf9
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,22 @@ jobs:

name: '${{matrix.os}}: ${{matrix.info}}'
runs-on: ${{matrix.os}}

services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: password
POSTGRES_USER: uservice_dynconf
POSTGRES_DB: uservice_dynconf

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -51,19 +66,6 @@ jobs:
ccache -M 2.0GB
ccache -s
- name: Run postgresql
if: matrix.make == 'test-release'
run: |
sudo service postgresql restart
pg_lsclusters
sudo -u postgres psql --command="CREATE USER uservice_dynconf PASSWORD 'password'" --command="\du"
sudo -u postgres createdb --owner=uservice_dynconf uservice_dynconf
- name: Run migrations
if: matrix.make == 'test-release'
run: |
PGPASSWORD=password psql 'postgresql://uservice_dynconf@localhost:5432/uservice_dynconf' -f ./postgresql/schemas/uservice_dynconf.sql
- name: Run ${{matrix.make}}
run: |
make ${{matrix.make}}
Expand Down

0 comments on commit 6c1bbf9

Please sign in to comment.