Skip to content

Commit 576d485

Browse files
committed
More CI fixes
1 parent 002c67e commit 576d485

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,22 @@ jobs:
102102
- name: Install postgres (MacOS)
103103
if: matrix.os == 'macos-13' && matrix.backend == 'postgres'
104104
run: |
105-
initdb -D /usr/local/var/postgres
106-
pg_ctl -D /usr/local/var/postgres start
105+
brew install postgresql@14
106+
brew services start postgresql@14
107107
sleep 3
108108
createuser -s postgres
109-
echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
109+
echo "PG_DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
110+
echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres@localhost/diesel_example" >> $GITHUB_ENV
110111
111112
- name: Install postgres (MacOS M1)
112113
if: matrix.os == 'macos-14' && matrix.backend == 'postgres'
113114
run: |
114-
brew install postgresql
115+
brew install postgresql@14
115116
brew services start postgresql@14
116117
sleep 3
117118
createuser -s postgres
118119
echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
120+
119121
- name: Install sqlite (MacOS)
120122
if: runner.os == 'macOS' && matrix.backend == 'sqlite'
121123
run: |

0 commit comments

Comments
 (0)