Skip to content

Commit

Permalink
add: postgres sql for test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NEKOYASAN committed Nov 27, 2023
1 parent 7c198ac commit fb6dd50
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ jobs:
test-check:
runs-on: ubuntu-latest
timeout-minutes: 5

services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -24,3 +36,5 @@ jobs:
run: cp .env.example .env
- name: test
run: tox
env:
TEST_DATABASE_NAME: test

0 comments on commit fb6dd50

Please sign in to comment.