Skip to content

Commit

Permalink
workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dehwyy committed Dec 17, 2023
1 parent d5ea69c commit 2f9788b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,28 @@ jobs:
tests:
runs-on: ubuntu-latest

services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4

- name: run tests
run: cargo test --verbose
env:
DATABASE_TEST_DSN: "host=localhost user=postgres password=root dbname=makoto_test port=5432 sslmode=disable"
DATABASE_TEST_URL: "postgres://postgres:postgres@localhost/postgres"

0 comments on commit 2f9788b

Please sign in to comment.