Skip to content

Commit a34d84c

Browse files
committed
progress
1 parent 54c9de8 commit a34d84c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ jobs:
159159

160160
# Build and run custom postgres image with plpgsql_check
161161
- name: Build and start postgres with plpgsql_check
162+
if: runner.os == 'Linux'
162163
run: |
163164
docker build -t postgres-plpgsql-check:latest .
164165
docker run -d --name postgres \
@@ -170,7 +171,18 @@ jobs:
170171
# Wait for postgres to be ready
171172
sleep 5
172173
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
173181
- 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'
174186
run: docker exec postgres psql -U postgres -c "select rolname from pg_roles;"
175187
- name: Run tests
176188
run: cargo test --workspace

0 commit comments

Comments
 (0)