File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ jobs:
159
159
160
160
# Build and run custom postgres image with plpgsql_check
161
161
- name : Build and start postgres with plpgsql_check
162
+ if : runner.os == 'Linux'
162
163
run : |
163
164
docker build -t postgres-plpgsql-check:latest .
164
165
docker run -d --name postgres \
@@ -170,7 +171,18 @@ jobs:
170
171
# Wait for postgres to be ready
171
172
sleep 5
172
173
docker exec postgres pg_isready -U postgres
174
+ - name : Build and start postgres with plpgsql_check (Windows)
175
+ if : runner.os == 'Windows'
176
+ run : |
177
+ docker build -t postgres-plpgsql-check:latest .
178
+ docker run -d --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -p 5432:5432 postgres-plpgsql-check:latest
179
+ Start-Sleep -Seconds 5
180
+ docker exec postgres pg_isready -U postgres
173
181
- name : Print Roles
182
+ if : runner.os == 'Linux'
183
+ run : docker exec postgres psql -U postgres -c "select rolname from pg_roles;"
184
+ - name : Print Roles (Windows)
185
+ if : runner.os == 'Windows'
174
186
run : docker exec postgres psql -U postgres -c "select rolname from pg_roles;"
175
187
- name : Run tests
176
188
run : cargo test --workspace
You can’t perform that action at this time.
0 commit comments