Skip to content

Commit

Permalink
add native dwn server
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Dec 2, 2023
1 parent 89800c6 commit 8655c19
Show file tree
Hide file tree
Showing 3 changed files with 1,258 additions and 41 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ jobs:
- name: Run linter for all packages
run: npm run lint --ws

- name: Start dwn-server container
run: cd packages/dev-env && docker-compose up -d

- name: Wait for dwn-server to be ready
run: until curl -sf http://localhost:3000/health; do echo -n .; sleep .1; done
- name: Run dwn-server
run: node node_modules/@web5/dwn-server/dist/esm/src/main.js

- name: Run tests for all packages
run: npm run test:node --ws -- --color
Expand Down Expand Up @@ -117,27 +114,19 @@ jobs:
if: steps.cache-playwright-restore.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Save Playwright Cache
- name: Save Playwright Cache (if no cache)
uses: actions/cache/save@v3
id: cache
id: cache-playwright-save
if: steps.cache-playwright-restore.outputs.cache-hit != 'true'
with:
path: ~/Library/Caches/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Build all workspace packages
run: npm run build

- name: Install docker
run: brew install docker && brew install docker-compose # && colima start

- name: Start docker
run: colima start

- name: Start dwn-server container
run: cd packages/dev-env && docker-compose up -d

- name: Wait for dwn-server to be ready
run: until curl -sf http://localhost:3000/health; do echo -n .; sleep .1; done
- name: Run dwn-server
run: node node_modules/@web5/dwn-server/dist/esm/src/main.js

- name: Run tests for all packages
run: npm run test:browser --ws
Expand Down
Loading

0 comments on commit 8655c19

Please sign in to comment.