File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff 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
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
5356 run : cargo build --verbose
5457
5558 - name : Tests
56- run : cargo test --rebase
59+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments