Skip to content

Commit 333fbee

Browse files
Merge pull request #81 from reddevilmidzy/db
PostgreSQL을 사용하여 DB 초기 구축
2 parents 7f52411 + b62ae8f commit 333fbee

File tree

8 files changed

+843
-3
lines changed

8 files changed

+843
-3
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919

2020
runs-on: ubuntu-latest
2121

22+
services:
23+
postgres:
24+
image: postgres
25+
env:
26+
POSTGRES_PASSWORD: postgres
27+
ports:
28+
- 5432:5432
29+
options: >-
30+
--health-cmd pg_isready
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 5
34+
2235
steps:
2336
- uses: actions/checkout@v4
2437
- name: Cache Cargo registry
@@ -62,6 +75,8 @@ jobs:
6275
6376
- name: Run tests
6477
working-directory: rook
78+
env:
79+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
6580
run: |
6681
cargo test --verbose > ../test-log.txt 2>&1
6782
TEST_STATUS=$?

rook/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DATABASE_URL=postgres://postgres:password@localhost:5432/queensac

0 commit comments

Comments
 (0)