Skip to content

Commit

Permalink
Fix services section of test
Browse files Browse the repository at this point in the history
  • Loading branch information
mawandm committed Apr 4, 2024
1 parent 697f35c commit e687277
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ on:
# - "nesis/api/core/requirements*"

jobs:
services:
postgres:
image: ametnes/postgresql:16-debian-12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: nesis
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
memcached:
image: bitnami/memcached:1.6.19
ports:
- 11211:11211
format:
runs-on: ubuntu-latest
name: Check API code format
Expand All @@ -47,6 +28,25 @@ jobs:
test:
runs-on: ubuntu-latest
name: Test API
services:
postgres:
image: ametnes/postgresql:16-debian-12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: nesis
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
memcached:
image: bitnami/memcached:1.6.19
ports:
- 11211:11211
steps:
- name: Check out source
uses: actions/checkout@v3
Expand Down

0 comments on commit e687277

Please sign in to comment.