We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef8bf6 commit 4a40164Copy full SHA for 4a40164
.github/workflows/rust.yml
@@ -19,6 +19,19 @@ jobs:
19
20
runs-on: ubuntu-latest
21
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
+
35
steps:
36
- uses: actions/checkout@v4
37
- name: Cache Cargo registry
@@ -62,6 +75,8 @@ jobs:
62
75
63
76
- name: Run tests
64
77
working-directory: rook
78
79
+ DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
65
80
run: |
66
81
cargo test --verbose > ../test-log.txt 2>&1
67
82
TEST_STATUS=$?
0 commit comments