forked from kfzteile24/postgresql-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.15 KB
/
tests.yml
File metadata and controls
53 lines (45 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Run Tests
on:
pull_request:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:18
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
# The official postgres image does not expose a default Docker HEALTHCHECK,
# so we define one explicitly for the GitHub Actions service container.
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
E2E_PG_HOST: 127.0.0.1
E2E_PG_PORT: 5432
E2E_PG_USER: postgres
E2E_PG_PASSWORD: postgres
E2E_PG_DB: postgres
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client
make install-test
- name: Run tests
run: |
make test