Skip to content

Commit 10857e9

Browse files
committed
OPT: run integration tests as part of a pull request
1 parent 1d5e361 commit 10857e9

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Run integration tests
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
integration_tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- run: cd integration_tests && make dctest

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
services:
22
db:
33
hostname: db
4-
image: postgres
4+
image: postgres:18
55
restart: always
66
environment:
77
POSTGRES_DB: elekto
88
POSTGRES_USER: root
99
POSTGRES_PASSWORD: root
1010
volumes:
11-
- pgdata:/var/lib/postgresql/data
11+
- pgdata:/var/lib/postgresql
1212
ports:
1313
- '5432:5432'
1414
healthcheck:

integration_tests/docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ services:
2626
- "8000:8000"
2727
environment:
2828
DB_CONNECTION: postgresql
29+
DB_HOST: db
2930
DB_PORT: 5432
3031
INTEGRATION_TEST: true
3132
APP_PORT: 8000

0 commit comments

Comments
 (0)