Skip to content

Commit

Permalink
Switched postgres user back to default
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Jan 5, 2021
1 parent c305cfb commit 329f3ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Setup PostgresSQL
if: matrix.database == 'postgres'
run: |
docker run -d -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -e POSTGRES_DB=origin_test -p 5432:5432 postgres
docker run -d -e POSTGRES_PASSWORD=root -e POSTGRES_DB=origin_test -p 5432:5432 postgres
sudo apt-get install postgresql-client
- name: Setup Redis
run: docker run -p 6379:6379 -d redis
Expand All @@ -63,8 +63,8 @@ jobs:
sudo mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE origin;'
fi;
if [[ ${{ matrix.database }} == 'postgres' ]]; then
export DB_USERNAME=root;
sudo PGPASSWORD=root psql -h 127.0.0.1 -c 'CREATE DATABASE origin;' -U root
export DB_USERNAME=postgres;
sudo PGPASSWORD=root psql -h 127.0.0.1 -c 'CREATE DATABASE origin;' -U postgres
fi;
php vendor/bin/phpunit --coverage-clover=clover.xml
env:
Expand Down

0 comments on commit 329f3ee

Please sign in to comment.