Skip to content

Commit

Permalink
chore(ci): fix e2e healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus committed Nov 1, 2023
1 parent 7bc9673 commit da60ce9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
docker compose logs
unit-test-coverage:
name: Unit Test - Coverage
name: Unit Test & Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -62,3 +62,10 @@ jobs:
${{ runner.os }}-golang-
- name: Run Unit Test
run: make unit-test-all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
directory: "./"
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ services:
postgres:
condition: service_healthy
game:
condition: service_healthy
environment:
- CARDINAL_ADDR=game:4040
- CARDINAL_NAMESPACE=TESTGAME
Expand All @@ -40,8 +39,6 @@ services:
- >
/nakama/nakama migrate up --database.address postgres:localdb@postgres:5432/nakama &&
exec /nakama/nakama --config /nakama/data/local.yml --database.address postgres:localdb@postgres:5432/nakama
# extra_hosts:
# - "host.docker.internal:host-gateway"
expose:
- "7349"
- "7350"
Expand Down Expand Up @@ -131,6 +128,7 @@ services:
networks:
- world-engine
restart: always

test_nakama:
container_name: test_nakama
build: ./internal/nakama
Expand Down

0 comments on commit da60ce9

Please sign in to comment.