Skip to content

Commit ae6bba6

Browse files
authored
Update ci.yml
1 parent 4372660 commit ae6bba6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212

1313
services:
1414
postgres:
15-
image: postgres:16
15+
image: postgres:16-alpine
1616
env:
17-
POSTGRES_USER: postgres
18-
POSTGRES_PASSWORD: postgres
17+
POSTGRES_USER: ricky
18+
POSTGRES_PASSWORD: password
1919
POSTGRES_DB: sniper
2020
ports:
2121
- 5432:5432
2222
options: >-
23-
--health-cmd="pg_isready -U postgres"
23+
--health-cmd="pg_isready -U ricky"
2424
--health-interval=10s
2525
--health-timeout=5s
2626
--health-retries=5
2727
2828
env:
2929
CARGO_TERM_COLOR: always
30-
DATABASE_URL: postgres://ricky:password@localhost:5432/sniper
30+
DATABASE_URL: postgresql://ricky:password@localhost:5432/sniper
3131

3232
steps:
3333
- uses: actions/checkout@v4
@@ -40,6 +40,9 @@ jobs:
4040
- name: Install sqlx-cli
4141
run: cargo install sqlx-cli --no-default-features --features postgres,rustls
4242

43+
- name: Check sqlx query metadata
44+
run: cargo sqlx prepare --check
45+
4346
- name: Run database migrations
4447
run: cargo sqlx migrate run
4548

@@ -53,4 +56,4 @@ jobs:
5356
run: cargo build --verbose
5457

5558
- name: Tests
56-
run: cargo test --rebase
59+
run: cargo test --verbose

0 commit comments

Comments
 (0)