Skip to content

Commit 9adbea9

Browse files
committed
fixup! 👷(tycho) add base jobs
1 parent ddc729f commit 9adbea9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/tycho.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
defaults:
4646
run:
4747
working-directory: ./src/tycho
48+
env:
49+
TYCHO_SECRET_KEY: the_secret_key
50+
TYCHO_DATABASE_URL: psql://tycho:pass@postgresql:5432/tycho
4851
steps:
4952
- uses: actions/checkout@v5
5053
- name: Install uv
@@ -66,9 +69,27 @@ jobs:
6669
test-tycho:
6770
needs: build-tycho
6871
runs-on: ubuntu-latest
72+
services:
73+
postgresql:
74+
image: postgres:16.10
75+
env:
76+
POSTGRES_DB: test-tycho
77+
POSTGRES_USER: tycho
78+
POSTGRES_PASSWORD: pass
79+
TEST: true
80+
options: >-
81+
--health-cmd pg_isready
82+
--health-interval 10s
83+
--health-timeout 5s
84+
--health-retries 5
85+
ports:
86+
- 5432:5432
6987
defaults:
7088
run:
7189
working-directory: ./src/tycho
90+
env:
91+
TYCHO_SECRET_KEY: the_secret_key
92+
TYCHO_DATABASE_URL: psql://tycho:pass@postgresql:5432/test-tycho
7293
steps:
7394
- uses: actions/checkout@v5
7495
- name: Install uv

0 commit comments

Comments
 (0)