Skip to content

Commit

Permalink
CI: set TZ environment variable when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Dec 30, 2024
1 parent 2d19590 commit 9afdbea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- name: Set up pre-installed PostgreSQL
uses: ikalnytskyi/action-setup-postgres@v6
env:
TZ: Asia/Kolkata
TZ: Asia/Kolkata
with:
username: pgeltestuser
password: pgeltest
database: pgeltestdb
username: pgeltestuser
password: pgeltest
database: pgeltestdb
id: postgres

- name: Install Emacs
Expand All @@ -26,5 +26,7 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Run connection tests over network
- name: Run tests over network
env:
TZ: Asia/Kolkata
run: make -C test test
11 changes: 7 additions & 4 deletions .github/workflows/test-pgv15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
# would also like to pass -c ssl=on -c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem -c ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
Expand All @@ -35,13 +34,17 @@ jobs:
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: 29.3
version: 29.4

- name: Check out repository code
uses: actions/checkout@v4

- name: Run connection tests over TCP socket
- name: Run tests over TCP socket
env:
TZ: Asia/Kolkata
run: make -C test test

- name: Run connection tests over local Unix socket
- name: Run tests over local Unix socket
env:
TZ: Asia/Kolkata
run: make -C test test-local
7 changes: 3 additions & 4 deletions .github/workflows/test-pgv16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
# would also like to pass -c ssl=on -c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem -c ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
Expand All @@ -35,13 +34,13 @@ jobs:
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: 29.3
version: 29.4

- name: Check out repository code
uses: actions/checkout@v4

- name: Run connection tests over TCP socket
- name: Run tests over TCP socket
run: make -C test test

- name: Run connection tests over local Unix socket
- name: Run tests over local Unix socket
run: make -C test test-local
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Run connection tests
- name: Run tests
run: make -C test test

0 comments on commit 9afdbea

Please sign in to comment.