Skip to content

Commit ed8280a

Browse files
committed
chore: fix ci yaml formatting.
Travis failed with: The command "psql -c "CREATE ROLE rounduptest_schema LOGIN PASSWORD 'rounduptest';" -U postgres - psql -c "CREATE DATABASE rounduptest_schema;GRANT CREATE ON DATABASE rounduptest_schema TO rounduptest_schema;" -U postgres" failed and exited with 2 during . Looks like there was a third leading space that casued two lines to get joined. Github failed with: ERROR: CREATE DATABASE cannot run inside a transaction block The create db and grant command when run together worked for me. Maybe a db difference? Split the two commands into separate psql calls.
1 parent 62fa92f commit ed8280a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
# set up postgresql database
155155
sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
156156
sudo -u postgres psql -c "CREATE ROLE rounduptest_schema LOGIN PASSWORD 'rounduptest';" -U postgres
157-
sudo -u postgres psql -c "CREATE DATABASE rounduptest_schema;GRANT CREATE ON DATABASE rounduptest_schema TO rounduptest_schema;" -U postgres
157+
sudo -u postgres psql -c "CREATE DATABASE rounduptest_schema;" -U postgres
158+
sudo -u postgres psql -c "GRANT CREATE ON DATABASE rounduptest_schema TO rounduptest_schema;" -U postgres
158159
159160
- name: install redis
160161
run: |

0 commit comments

Comments
 (0)