Skip to content

Commit

Permalink
test against a local copy of the dwn server
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Jul 31, 2023
1 parent d8e2be7 commit 9e3a0a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,17 @@ jobs:

- name: Run linter for all packages
run: npm run lint --ws

- name: start services tests need
run: cd testfiles && docker-compose up -d

- name: wait for services to be ready
run: until curl -sf http://localhost:3000/health; do sleep .1; done && until curl -sf http://localhost:8080/health; do echo -n .; sleep .1; done

- name: Run tests for all packages
run: npm run test:node --ws
env:
DWN_URL: http://localhost:3000

- name: Upload test coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
Expand Down Expand Up @@ -85,3 +93,5 @@ jobs:

- name: Run tests for all packages
run: npm run test:browser --ws
env:
DWN_URL: http://localhost:3000
8 changes: 8 additions & 0 deletions testfiles/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.98"

services:
dwn-node:
container_name: dwn-node
image: ghcr.io/tbd54566975/dwn-server:dwn-sdk-0.0.35
ports:
- "3000:3000"

0 comments on commit 9e3a0a6

Please sign in to comment.