Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,17 @@ jobs:
POSTGRES_DB: garm
ports:
- 5432:5432
# Back the data directory with tmpfs (RAM). The test suite creates a
# fresh schema and runs the full migration for every test case, so the
# default disk-backed, fsync-on container makes the run slow enough to
# hit the test timeout. This database is ephemeral, so trading
# durability for speed is safe.
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--tmpfs /var/lib/postgresql/data

steps:
- name: Install dependencies
Expand Down