Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db0b62e

Browse files
fix: release workflow
1 parent 63efa14 commit db0b62e

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

‎.github/workflows/release.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,29 @@ jobs:
6767
sudo apt-get update
6868
sudo apt-get install -y gcc-aarch64-linux-gnu
6969
70-
# running containers via `services` only works on linux
71-
# https://github.com/actions/runner/issues/1866
72-
- name: 🐘 Setup postgres
70+
# For Linux, use custom Docker image with plpgsql_check
71+
- name: Build and start PostgreSQL with plpgsql_check
72+
if: runner.os == 'Linux'
73+
run: |
74+
docker build -t postgres-plpgsql-check:latest .
75+
docker run -d --name postgres \
76+
-e POSTGRES_USER=postgres \
77+
-e POSTGRES_PASSWORD=postgres \
78+
-e POSTGRES_DB=postgres \
79+
-p 5432:5432 \
80+
postgres-plpgsql-check:latest
81+
# Wait for postgres to be ready
82+
for _ in {1..30}; do
83+
if docker exec postgres pg_isready -U postgres; then
84+
break
85+
fi
86+
sleep 1
87+
done
88+
89+
# For Windows, use the action since PostgreSQL Docker image doesn't support Windows containers
90+
- name: Setup postgres (Windows)
91+
if: runner.os == 'Windows'
92+
id: postgres
7393
uses: ikalnytskyi/action-setup-postgres@v7
7494

7595
- name: 🧪 Run Tests

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /