Skip to content

Commit

Permalink
set up test postgres user with password
Browse files Browse the repository at this point in the history
  • Loading branch information
thewunder committed Mar 21, 2024
1 parent 0ce32ae commit 3bb930d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
MYSQL_USER: root
MYSQL_PASS: root
PGSQL_HOST: localhost
PGSQL_USER: postgres
PGSQL_PASS: postgres
PGSQL_USER: cormatest
PGSQL_PASS: cormatest
PGSQL_PORT: 5432

steps:
Expand All @@ -36,7 +36,10 @@ jobs:
- name: Start PostgreSQL
run: |
sudo systemctl start postgresql
pg_isready
- name: Create test postgres user
run: |
sudo -u postgres psql --command="CREATE USER $PGSQL_USER PASSWORD '$PGSQL_PASS'" --command="\du"
- name: Validate composer.json and composer.lock
run: composer validate --strict

Expand Down

0 comments on commit 3bb930d

Please sign in to comment.